+----------------------------------------+|CONCAT('GEORGE WASHINGTON ','CARVER')||----------------------------------------|| George Washington Carver |+----------------------------------------+
Concatenate five strings, using session variables
for three of them:
SET var_first_name ='George';SET var_middle_name ='Washington';SET var_last_name ='Carver';SELECTCONCAT($var_first_name,' ',$var_middle_name,' ',$var_last_name)AS concat_name;
+--------------------------+| CONCAT_NAME ||--------------------------|| George Washington Carver |+--------------------------+
Concatenate two VARCHAR columns. First, create a table and insert data:
+--------------------------------------------------------------------+|'THIS '||'IS '||'ANOTHER '||'CONCATENATION '||'TECHNIQUE.'||--------------------------------------------------------------------|| This is another concatenation technique.|+--------------------------------------------------------------------+