How to get number of columns in a table? SELECT COUNT (column_name) FROM user_tab_columns WHERE table_name = '<tablename>'; more »