简体   繁体   中英

How do you count the number of columns in a table

How to find the number of columns in a table.

desc foo (actually mentions the list of columns at the end of the table, as the number of rows it found), but is there a different way to find it?

Take a look at this blog post. It shows how to query MySQL metadata, and get the information you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM