How to Use the LEFT() Function in SQL Server: A Complete Guide

Rumman Ansari   Software Engineer   2024-07-21 09:35:32   5821  Share
Subject Syllabus DetailsSubject Details
☰ TContent
☰Fullscreen

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



Stay Ahead of the Curve! Check out these trending topics and sharpen your skills.