SELECT COUNT(*)
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_catalog = 'database_name' -- the database
AND table_name="table_name"
More Related Contents:
- How can I do a FULL OUTER JOIN in MySQL?
- You can’t specify target table for update in FROM clause
- How do I see what character set a MySQL database / table / column is?
- Generating a range of numbers in MySQL
- How to get next/previous record in MySQL?
- How do I make a row generator in MySQL?
- MySQL INSERT INTO table VALUES.. vs INSERT INTO table SET
- MySQL number of items within “in clause”
- Error 1046 No database Selected, how to resolve?
- What’s the difference between VARCHAR and CHAR?
- Alter a MySQL column to be AUTO_INCREMENT
- Is there something wrong with joins that don’t use the JOIN keyword in SQL or MySQL?
- MySQL ON DUPLICATE KEY UPDATE for multiple rows insert in single query
- single fixed table with multiple columns vs flexible abstract tables
- MySQL remove duplicates from big database quick
- mysql, iterate through column names
- How to delete from select in MySQL?
- How to delete Duplicates in MySQL table
- How to ORDER BY a SUM() in MySQL?
- mySQL Returning the top 5 of each category
- Selecting Random Rows in MySQL
- Is it possible to have an indexed view in MySQL?
- Error: The used SELECT statements have a different number of columns
- How to Optimize Queries in a Database – The Basics
- Mysql, reshape data from long / tall to wide
- MySQL: Compare differences between two tables
- Mysql strip time component from datetime
- How do I start auto increment from a specific point?
- In SQL how do I get the maximum value for an integer?
- Get the first and last date of next month in MySQL