当前位置:首页 > 数据库 > 正文

Oracle生成批量清空表数据脚本

2020-03-02 数据库

 

select DELETE FROM  || a.table_name || ;      -- || a.comments 
from user_tab_comments a 
where a.table_type in(TABLE) and table_name not like SYS_%

 

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/21854.html