SQL能把2个字段的内容合并在一起么?

2025-03-22 21:11:07
推荐回答(3个)
回答1:

如果a、b都是字符串的话可以这样写select (a+b) c from table

回答2:

字符串用 || 相连select a||b as c from table1;

回答3:

select concat(a,b) from table1 ;