pl sql 中怎样快速看到一个表的字段总数?

2025-06-25 10:28:37
推荐回答(4个)
回答1:

select count(*) from user_tab_cols where table_name = '大写表名'
或者dba_tab_cols也行

回答2:

select column_name from 表名

回答3:

select count(*) as 总数 from sysobjects where type='U'

回答4:

inser into table1
select number+1,id+2,otherfields from table2

若你修改的number与id不能用计算式表示的话,就老老实实一个一个插入吧