DotNet
Welcome To MyBlog
Tuesday, 10 April 2012
Concatenate columns in SQL
Syntax:
SELECT Concat(Field1,Field2) From Tablename
concat(firstname, lastname)
SELECT e.Emp_Id,Concat(e.fir_name,',',e.Las_name) as Fir_name FROM emp_detail e,emp_off_detail e1 where e.Emp_ID=e1.Emp_ID
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment