select count(*) from table

解决方案 »

  1.   

    select count(*) from user_tab_columns
    where Table_name=upper('yourtable')
      

  2.   

    SQL> desc A;
    Name Type         Nullable Default Comments 
    ---- ------------ -------- ------- -------- 
    A1   VARCHAR2(10) Y                         
    A2   VARCHAR2(10) Y                         
    A3   VARCHAR2(10) Y                         SQL> select count(0) from user_col_comments where table_name = 'A';  COUNT(0)
    ----------
             3Executed in 0.016 secondsSQL>