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>'
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>'