mysql获取表的所有字段名

select COLUMN_NAME from information_schema.COLUMNS where table_name = ‘your_table_name’ and table_schema = ‘your_db_name’; 

猜你喜欢

转载自blog.csdn.net/u012424449/article/details/76608039