select * from tbl
Is there an easy way to list all the column names from the table that will look like this?
select colA, colB, colC from tbl
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure what you mean by listing the column names. As already mentioned to list the data within all columns you’ll need to write:
Whereas if you’d like a list of just the columns in your table, give these a try:
or
More information on the latter can be found here
http://dev.mysql.com/doc/refman/5.0/en/show-columns.html
http://dev.mysql.com/doc/refman/5.0/en/describe.html