Share on Google+Share on Google+

MySQL Append

Advertisement
This example illustrates how to append the value of two column.

MySQL Append

This example illustrates how to append the value of two column.

In this example we use the 'CONCAT' function to append the two values of two column.

 

Query

 

SELECT CONCAT(first_name, " ", last_name) 
from roseindia where city = 'lucknow';

 

Output

 

+------------------------------------+
| CONCAT(first_name, " ", last_name) |
+------------------------------------+
| sandeep suman                      |
| amit raghuvansi                    |
| amar patel                         |
+------------------------------------+

 

 

Advertisements

Posted on: December 9, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.