1.对于表中行与行存在父子关系时,可以通过connect by查询方式,查询行与行之间的父子关系 ),'-')|| empno as tempno, ename,mgr,level, decode(,) as root, decode(connect_by_isleaf,,) as leafnode from emp start connect by (prior empno) = mgr order by level; 除了level伪列外,connect_by_isleaf也是伪列,1表示没
假定场景:批量导入用户信息 一般批量新增使用 SELECT … INSERT INTO 和 INSERT INTO … SELECT 我们这次使用第二种 一.先建一张用户信息表模拟批量导入用户信息 create table u_info{ id NUMBER not null, info_no ) not null, name ) not null, birthday DATE, age NUMBER, create_date DATE not null } -- 自动按天数分区 -- tabl