Does CONCAT change the database table? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does CONCAT change the database table?

Does CONCAT change the database columns? So if you did a SHOW columns FROM tablename would you see the newly created column resulting from the CONCAT function? -Thanks

22nd Feb 2020, 8:44 PM
task
1 Answer
+ 1
No, if you do- SHOW columns FROM table_name; It will display the actual column name which was given to it at the time of table creation. When you use the CONCAT function, it results a temporary change in the column name which is only at the time of display of your result.
22nd Feb 2020, 8:59 PM
Avinesh
Avinesh - avatar