show-notice
hide-notice

Tuesday, 6 August 2013

MID() Function in sql server


Introduction:

The MID() function is used to extract characters from a text field.

Syntax:
 SELECT MID(column_name,start[,length]) FROM table_name;





Example:
SELECT MID(City,1,4) AS ShortCity
FROM Customers; 


SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com