Why concat function in sql | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why concat function in sql

Hi everybody! Why use concat function from sql if I can to use concat function from programming language: php, c#, python etc? what is the benefit? I don't understand

31st Oct 2018, 1:29 AM
ะะปะตะบัะฐะฝะดั€ ะ›ะตะฑะตะดะตะฒ
ะะปะตะบัะฐะฝะดั€ ะ›ะตะฑะตะดะตะฒ - avatar
3 Answers
+ 2
With concat function you could create a single coloum to use later and yes you could use it in programming languages but the point is to use it in sql without using other languages
31st Oct 2018, 1:56 AM
chris
chris - avatar
0
so what is the profit to use concat in sql instead of programming language?
31st Oct 2018, 5:21 AM
ะะปะตะบัะฐะฝะดั€ ะ›ะตะฑะตะดะตะฒ
ะะปะตะบัะฐะฝะดั€ ะ›ะตะฑะตะดะตะฒ - avatar
0
I understand. For optimal using CONCAT need using AS for create and get result as new column. this column will unite the others. without as - no profit
31st Oct 2018, 9:13 AM
ะะปะตะบัะฐะฝะดั€ ะ›ะตะฑะตะดะตะฒ
ะะปะตะบัะฐะฝะดั€ ะ›ะตะฑะตะดะตะฒ - avatar