如果一个表中有很多的字段,而我们想要知道这个表中的字段个数,如果使用如下方式一个一个数,则显得很麻烦 Oracle中可以使用如下sql来查询字段(列)个数 [sql] view plain copy select count(*) from user_tab_columns where table_name=upper('表名') 或者 [sql] view plain copy select max(column_id) from user_tab_columns where table_name=upper('表名')