摘要:
在oracel中修改关联表时,直接上实例: update O o set (o.o1)=( select d.d1 from D d where o.o4=d.d4 ) where exists( select 1 from D d where o.o4=d.d4) update O o set ( 阅读全文
摘要:
查询某个库所有表 select * from information_schema.TABLES where table_schema = '数据库' #查询某个库所有表的字段 select * from information_schema.COLUMNS where table_schema = 阅读全文
摘要:
场景:在做数据库巡检时,检查大表是必不可少的操作,可以查看各表占用表空间的大小 select t.owner,t.segment_name,t.tablespace_name,bytes/1024/1024/1024 as sizes,q.num_rows,t.segment_type from d 阅读全文