outlookling

博客园 首页 新随笔 联系 订阅 管理

2015年2月1日 #

摘要: 阅读全文
posted @ 2015-02-01 10:25 jsonZhu 阅读(1515) 评论(0) 推荐(0) 编辑

摘要: 现要做报表,要查出在当天所处的日期区间的某些数据,sql语句该怎么写?就是说 无法直接输入日期,日期得在其他表的start date 和 end date 中获得。select * from a where a.time between (select b.startdate from b b ... 阅读全文
posted @ 2015-02-01 01:08 jsonZhu 阅读(248) 评论(0) 推荐(0) 编辑

摘要: -- Create sequence create sequence INNERID minvalue 1 maxvalue 99999999999999 start with 1 increment by 1 cache 20 order;2.--INNERID.currval 指当前序列 --I... 阅读全文
posted @ 2015-02-01 01:05 jsonZhu 阅读(221) 评论(0) 推荐(0) 编辑

摘要: -- 创建序列 create sequence 序列名称 start with 1 -- 起始值 increment by 1 -- 增量 maxvalue 99999999 -- 最大值 nocycle -- 达到最大值后是否重新计算,当前为不重新计算,cycle为重新计算 nocache; --... 阅读全文
posted @ 2015-02-01 01:03 jsonZhu 阅读(978) 评论(0) 推荐(0) 编辑