ITeye博客

sql查询表的列信息

gu6866 · 2012-07-01 15:12 · Oracle · 数据库 · Markdown

查询表中所有的列: 
select column_name from user_tab_columns where table_name='T_USER'; 

查询表中字段的名字、类型、长度(注意表名和字段名大写): 
select column_name,data_type,data_length from user_tab_columns where table_name='T_USER' and column_name='USERNAME';

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。