摘要: 1.使用条件查询 查询部门为20的员工列表 -- 查询部门为20的员工列表 SELECT t.DEPTNO,t.ENAME FROM SCOTT.EMP t where t.DEPTNO = '20' ; 效果: 2.使用 listagg() WITHIN GROUP () 将多行合并成一行(比较常 阅读全文
posted @ 2021-06-16 16:29 rjm123456 阅读(64) 评论(0) 推荐(0) 编辑
摘要: sql_item = "select rate_swap_id_sequence.nextval from (select 1 from DCS_FILE_RECORD where rownum <=%d)" % (num_data) 阅读全文
posted @ 2021-06-16 14:52 rjm123456 阅读(71) 评论(0) 推荐(0) 编辑
摘要: select * from dcs_reserved_rnscb0609 c where c.dcs_id in (select dcs_id from (select RANK() over(partition by zqdm, zqjc, sj, xynx, jyfs, zxjz, zxsyl, 阅读全文
posted @ 2021-06-16 14:47 rjm123456 阅读(124) 评论(0) 推荐(0) 编辑
摘要: select * from user_tables m where m.partitioned='YES' 阅读全文
posted @ 2021-06-16 14:45 rjm123456 阅读(91) 评论(0) 推荐(0) 编辑
摘要: alter table dcs_reserved_tjxt_bbo set interval(numtoyminterval(1,'month')); 阅读全文
posted @ 2021-06-16 14:42 rjm123456 阅读(130) 评论(0) 推荐(0) 编辑