mysql 查看一个表有多少个字段

场景

. 一个表的字段已经多到了 让你发怵的时候, 所以别人的项目是很麻烦的

解决

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

猜你喜欢

转载自blog.csdn.net/cominglately/article/details/80668434