摘要:
工作备忘一: Oracle相关1.删除重复项, 只保留第一条deletetable t1where t1.ID not in ( select min(t2.ID) fromtable t2 group by t2.ColName)2.查找重复记录select t1.ID, count(*) from table group by t1.ID having count(*) > 1 order by count(*) desc3.导入数据时, 如果目标表存在主键且主键在源表中没有对应的字段时, 使用触发器+序列create or replace trigger res_circuit_u
阅读全文