oracle
a754782339
这个作者很懒,什么都没留下…
展开
-
oracle分页sql
[code="java"] 1.根据ROWID来分 select * from t_xiaoxi where rowid in(select rid from (select rownum rn,rid from(select rowid rid,cid from t_xiaoxi order by cid desc) where rownum9980) order by cid de...原创 2015-04-10 16:02:54 · 80 阅读 · 0 评论 -
oracle 函数
[code="java"] select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') as nowTime from dual; //日期转化 为字符串 select to_char(sysdate,'yyyy') as nowYear from dual; //获取时间的年 select to_char(sysdate,'mm') ...原创 2015-04-15 09:32:34 · 76 阅读 · 0 评论