SAS
Monday, 10 October 2011
SQL- Scalar Functions- MID()
n
The MID() function is used to extract characters from a text field.
Syntax:
SELECT MID(column_name,start,length) FROM table_name
Query:
SELECT MID(EMPname,1,4) AS Employee Name FROM EMPtbl1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment