不是说用‘||’可以将两个字符串连接起来的吗, select * from myDB where name = 'a'||'bc' 还请高手赐教 试过MySQL和SQLserver,都说我语法错误 那“+”号是所有数据库通用的吗?
萧十郎
浏览 126回答 3
3回答
弑天下
在MYSQL中字符串连接使用的是concat内置函数。可以写为:select * from myDB where name =concat('a','bc')在SQL Server中字符串连接用+号。可以写为:select * from myDB where name ='a'+'bc' 在Oracle中字符串连接用的是||号。