MySQL Forums
Forum List  »  New in 4.1: Subqueries

how to count columns in the table
Posted by: shankar nag
Date: September 02, 2010 05:48AM

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

SHANKARNAG.T

Options: ReplyQuote


Subject
Views
Written By
Posted
how to count columns in the table
1562
September 02, 2010 05:48AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.