Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 382 Bytes

File metadata and controls

10 lines (7 loc) · 382 Bytes

删除

对表做特殊修改时应做备份,删除表可以用重命名的方式,慎用TRUNCATE(因为是DDL语句没有事务)

Oracleinsert ... select需用注释提高性能

insert ... select /*+ no_merge(p) use_hash(p) */  ...

PostgreSQL事务可以包含DMLDDLDCL,可以使用重命名表的方式备份清理表不影响业务