Mysql中获取表的所有字段

SQL:

select group_concat(column_name) from information_schema.columns where table_name = 't_user' and table_schema='test';
  • table_name:表名
  • table_schema : 库名

猜你喜欢

转载自blog.csdn.net/lizz861109/article/details/112787643