mysql查询一张表中有哪些字段?

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_38126105/article/details/85451865
select COLUMN_NAME from information_schema.COLUMNS where table_name = '表名' and table_schema='数据库名';

实测有效
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/m0_38126105/article/details/85451865