文件存储过程中总结出来的oracle语
批量更新插入语句(数据迁移经常用到) 比for循环一个个插效率高
merge into 要插入数据的表名 using 数据的来源的biaming on 两个表之间关联的条件
when matched then update更新语句
when not matched then insert插入语句
递归查询文件
select * from 表名 +where条件+ start with … connect by prior+ 条件
统计对应表中某个字段值为对应不同值的个数
select count(case when 条件 then 1)…from 表名 +条件