MySQL如何获取表内所有列的名称和类型?
1、运行命令:desc table_name;
2、运行命令:show full columns from table_name;(该命令可以显示指定表所有列的详细信息,都是建表时的信息)
select * from information_schema.columns;