随笔分类 -  Oracle

有关Oracle的资料
摘要:ceil和floor函数在一些业务数据的时候,有时还是很有用的。ceil(n) 取大于等于数值n的最小整数;floor(n)取小于等于数值n的最大整数 阅读全文
posted @ 2013-05-09 08:51 用心玲听 阅读(447) 评论(1) 推荐(0)
摘要:项目有一个需求,根据输入的内容模糊查询(一般是带英文字母的查询),例如:数据库表中这列存放的数据都是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 用心玲听 阅读(999) 评论(0) 推荐(0)