Find the number of columns in a table

前端 未结 19 2184
Happy的楠姐
Happy的楠姐 2020-11-27 11:13

It is possible to find the number of rows in a table:

select count(*) from tablename

Is it possible to find the number of columns in a tabl

相关标签:
19条回答
  • 2020-11-27 12:07

    Query to count the number of columns in a table:

    select count(*) from user_tab_columns where table_name = 'tablename';
    

    Replace tablename with the name of the table whose total number of columns you want returned.

    0 讨论(0)
提交回复
热议问题