How to use CONCAT?

674 Views Asked by At

I'm a beginner at SQL and I'm struggling to understand how to use the CONCAT function. Can someone provide some guidance or resources that can help me properly learn how to use this function effectively in SQL?

I am working on a project for my google class for a database. I've been trying to learn how to use the CONCAT function in SQL, but I'm having difficulty understanding how it works and how to apply it to my datasets. I've tried reading some tutorials online, but I'm still not clear on how to use it effectively in practice.

1

There are 1 best solutions below

0
Mia On
mysql> select concat('10');  
+--------------+  
| concat('10') |  
+--------------+  
| 10   |  
+--------------+  
1 row in set (0.00 sec)  
 
mysql> select concat('11','22','33');  
+------------------------+  
| concat('11','22','33') |  
+------------------------+  
| 112233 |  
+------------------------+  
1 row in set (0.00 sec)