2014年5月13日

oracle 获取星期日期

摘要: oracle 中的计算如下:计算本星期的起始结束日期--得到星期一的日期select trunc(sysdate,''DD'')-to_char(sysdate,''D'')+2 from dual;--得到星期天的日期select trunc(sysdate,''DD'')-to_char(sys... 阅读全文

posted @ 2014-05-13 16:09 荣锋亮 阅读(1977) 评论(0) 推荐(0)

oracle 查某一列有重复值的记录

摘要: -- 查找重复记录select names,num from test where rowid != (select max(rowid) from test b where b.names = test.names and b.num = test.num)或者使用select names,n... 阅读全文

posted @ 2014-05-13 15:31 荣锋亮 阅读(1947) 评论(0) 推荐(0)

导航