摘要: 项目有一个需求,根据输入的内容模糊查询(一般是带英文字母的查询),例如:数据库表中这列存放的数据都是Iif,无论用当用户输入iif还是IIF(不区分大小写),都能得到查询结果,那么SQL脚本的写法如下:select * from formula where upper(Text) like upper('%iif%')select * from formula where Lower(Text) like Lower('%iif%')select * fromfromula where Lower(Text) like '%iif%'(‘%xxx 阅读全文
posted @ 2013-04-20 10:20 用心玲听 阅读(954) 评论(0) 推荐(0) 编辑