Oracle 使用过的一些语句

-- 查询指定表的字段结构
select * from all_tab_columns where Table_Name='表名';

-- 查询指定表的字段结构对应的注释
select * from all_col_comments where Table_Name='表名';

-- 保留表结构清空表数据
TRUNCATE TABLE 表名;

posted @ 2020-07-16 14:32  itJun  阅读(102)  评论(0)    收藏  举报