Web Analytics Made Easy - Statcounter

LEFT() function in SQL Server

LEFT() function in SQL Server

Left() Function

 This function returns the specified number of characters from the left part of the given character string.

Syntax

Select LEFT ( character_expression , integer_expression )For example, the below query will return two characters from the beginning

Select LEFT  (‘Vivek’,2)

Result

Vi

DMCA.com


Discover more from Technology with Vivek Johari

Subscribe to get the latest posts sent to your email.

31 Comments

Leave a Reply

Discover more from Technology with Vivek Johari

Subscribe now to keep reading and get access to the full archive.

Continue reading