Oracle获取用户下所有表名 获取表所有的列名及数据类型

select table_name from user_tables where TABLESPACE_NAME is not null and  user='UserName' 


SELECT table_name, column_name, data_type FROM all_tab_cols WHERE table_name = 'tablename ';

 1、_TAB_COLS和_TAB_COLUMNS区别在于,*_TAB_COLS中包含隐藏的列。

posted @ 2020-12-25 16:17  关键步就几步  阅读(324)  评论(0编辑  收藏  举报