MySQL concatenation operator

后端 未结 6 2205
长发绾君心
长发绾君心 2020-11-29 09:54

I don\'t know concatenation operator for MySQL.

I have tried this code for concatenation:

SELECT vend_name || \' (\' || vend_country || \')\'
FROM Ve         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 10:35

    Simply you can use CONCAT keyword to concatenate the Strings.. You can use it like

    SELECT CONCAT(vend_name,'',vend_country) FROM vendors ORER BY name;
    

提交回复
热议问题