Number of columns

前端 未结 5 592

how do you count the number of columns in a table in oracle?

5条回答
  •  悲哀的现实
    2020-12-29 14:43

    Number of column and number of rows in oracle table:

    SELECT u.table_name Table_Name, 
           Count(*)     Table_Columns, 
           u.num_rows   Table_Rows 
    FROM   user_tab_columns c, 
           user_tables u 
    WHERE  u.table_name = c.table_name 
    GROUP  BY u.table_name, 
              u.num_rows 
    

提交回复
热议问题