例如我的数据库名为“example”,使用
USE example;
确定使用example数据库。使用
show tables;
显示数据库中的所有表。使用
DESC persons;
显示表persons中的列名。或者使用
本文来源gaodaima#com搞(代@码$网6
DESCRIBE persons;
或者使用
SHOW columns FROM persons;
例如我的数据库名为“example”,使用
USE example;
确定使用example数据库。使用
show tables;
显示数据库中的所有表。使用
DESC persons;
显示表persons中的列名。或者使用
本文来源gaodaima#com搞(代@码$网6
DESCRIBE persons;
或者使用
SHOW columns FROM persons;