
How to Use the LEFT() Function in SQL Server: A Complete Guide
☰Fullscreen
Syntax:
LEFT(Character_Expression, Integer_Expression)
Returns the specified number of characters from the left hand side of the given character expression.
Code:
Select LEFT('ABCDE', 3)
Output:
The above code will produce the following result-
ABC
No Questions Data Available.
No Program Data.