您的位置:首页 > 数据库

SQL模糊查询的写法

2015-06-04 09:50 225 查看
在mysql中:

select * from table_name where name like concat('%',#name#,'%');

在oracle中:

select * from table_name where name like '%'||#name#||'%';

在SQL Server中:

select * from table_name where name like '%'+#name#+'%';

SQL Server:select * from stu where name like '%'+#name #+'%
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: