show-notice
hide-notice

Tuesday, 6 August 2013

LEN() Function in Sql Server


Introduction:

The LEN() function returns the length of the value in a text field.


Syntax:
SELECT LEN(column_name) FROM table_name;




Example:
SELECT CustomerName,LEN(Address) as LengthOfAddress
FROM Customers; 


SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com