LEFT() Function in SQL Server

Rumman Ansari   Software Engineer   2023-03-25   5473 Share
☰ Table of Contents

Table of Content:


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