【oracle】查询表的相关信息

来源:互联网 发布:九阴真经买淘宝礼包 编辑:程序博客网 时间:2024/05/17 01:31

1.oracle 中查询表的各个字段 ,字段数据类型,字段长度,数据精度等


sql :

select column_name,data_type ,data_length,data_precision,data_scale from user_tab_columns where table_name= [tableName]; 

i.e : 查询 vst_test 表的各种信息

select column_name,data_type ,data_length,data_precision,data_scale from user_tab_columns where table_name= 'VST_test'; ----不能使用双引号,且表名称要大写



0 0