常用sql语句用法
union和Union All的區(qū)別?http://blog.csdn.net/wanghai__/article/details/4712555/
case when 語句 select case when NR='增城' Then '增城市' when NR='從化' Then NR='從化' Then '從化市' Else NR END detail from xxxxx where bm='2'
查詢符合條件的或者沒有條件的:Select ?count(*) ?From XXXX t where (To_Char(Create_Time, 'yyyy-MM-dd') >= '2014-01-01' Or ?'2014-01-01'Is Null) And (To_Char(Create_Time, 'yyyy-MM-dd') <='2014-04-30' Or '2014-04-30' Is Null)
轉(zhuǎn)載于:https://my.oschina.net/liangzhenghui/blog/222795
總結(jié)
- 上一篇: 关于缓存
- 下一篇: LeetCode刷题——整数反转