时间:2021-07-01 10:21:17 帮助过:305人阅读
select concat(name,id) as name from table 这种将两列的结果拼在一起
select concat(concat(name,‘ ‘),id) as nameid,age from table 这种将两列的结果拼在一起,中间有空格隔开
select name+id as name from table 这种如果有一列的值为null 则结果为null
Sql将两列字段合并在一列
标签:sel eid null 空格 ble cat 字段 bsp 合并