现在的位置: 首页 > 综合 > 正文

数据库中字符串的连接

2014年06月06日 ⁄ 综合 ⁄ 共 151字 ⁄ 字号 评论关闭
在MYSQL中字符串连接使用的是concat内置函数。可以写为:select * from myDB where name =concat('a','bc')
在SQL Server中字符串连接用+号。可以写为:select * from myDB where name ='a'+'bc' 
在Oracle中字符串连接用的是||号。

抱歉!评论已关闭.