daniell003

mysql查看表结构命令,如下:

desc 表名;
show columns from 表名;
describe 表名;
show create table 表名;


use information_schema; #切换到information_schema数据库
select * from columns where table_name=\'表名\'; #查看表信息

顺便提下MySQL常用语句:
show databases;
use 数据库名;
show tables

分类:

技术点:

相关文章:

  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-02-03
  • 2021-07-16
  • 2022-01-27
  • 2021-07-19
猜你喜欢
  • 2021-11-27
  • 2022-12-23
  • 2021-09-27
  • 2021-10-13
  • 2021-12-19
  • 2022-12-23
  • 2021-09-08
相关资源
相似解决方案