How to: Count columns in a table for SQL (Get column number for one talbe)

How to: Count columns in a table for SQL (Get column number for one talbe)


SELECT count(*) FROM information_schema.columns WHERE table_name = '<table_name>'

你可能感兴趣的:(sql,table)