2011年11月30日

oracle 时间差 做查询条件

摘要: 查询时间差<10秒的记录:select * from myTable where (t2- t1)*24*60*60<10t1,t2只能是date类型。如果是 http://www.linuxidc.com/Linux/2011-10/45480.htm 阅读全文

posted @ 2011-11-30 22:49 子非鱼焉 阅读(249) 评论(0) 推荐(0) 编辑

几条最基本的 sqlplus命令

摘要: sqlplus登录服务器:sqlplus sys/system@192.168.1.55:1521/orcl as sysdba创建表空间: create tablespace tspace1 datafile 'tspace1.dat' size 100M autoextend on n... 阅读全文

posted @ 2011-11-30 11:46 子非鱼焉 阅读(96) 评论(0) 推荐(0) 编辑

oracle 分页

摘要: 记录一下,oracle 分页语句:select * from(select a.*,rownum row_num from(select * from mytable t order by t.id desc) a) b where b.row_num between 1 and 10下面是... 阅读全文

posted @ 2011-11-30 11:23 子非鱼焉 阅读(84) 评论(0) 推荐(0) 编辑

导航