您好,欢迎访问一九零五行业门户网

MySql中查询表中的列名_MySQL

例如我的数据库名为“example”,使用
use example;
确定使用example数据库。使用
show tables;
显示数据库中的所有表。使用
desc persons;
显示表persons中的列名。或者使用
describe persons;
或者使用
show columns from persons;
其它类似信息

推荐信息