解决mysql查询数据库所有的表名称和表结构的sql语句怎么写
解决mysql查询数据库所有的表名称和表结构的sql语句怎么写
日期:2016-09-01 16:04:25 人气:1
查询MySQL数据库所有表名的SQL命令:
show tables;
查询MySQL数据库有表结构的SQL命令:
show create table tblName;
例如:show create table students;
CREATE TABLE `students` (
`sid` char(10) NOT NULL,
`sname` varchar(50) NOT NULL,
`sex` char(1) NOT NULL,
`dob` date NOT NULL,
`