1.显示所有的表名:

show tables from xxx

  显示表的详细信息:

desc xxx表名

 

2.显示所有的字段名,并用,号分割:

select GROUP_CONCAT(column_name) from information_schema.columns where table_name= 'xxx表名'; 

3.显示所有的数据库名:

show databases

 

相关文章:

  • 2022-12-23
  • 2021-10-21
  • 2021-09-28
  • 2022-12-23
  • 2021-10-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2022-02-09
相关资源
相似解决方案