Get all the fields of the table in Mysql

SQL:

select group_concat(column_name) from information_schema.columns where table_name = 't_user' and table_schema='test';
  • table_name: table name
  • table_schema: library name

Guess you like

Origin blog.csdn.net/lizz861109/article/details/112787643