Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
检查数据库模式mysql_Mysql - Fatal编程技术网

检查数据库模式mysql

检查数据库模式mysql,mysql,Mysql,MySQL windows命令行客户端中是否有命令允许您查看数据库中的所有表,或显示特定表的架构,类似于sqlite3中的.tables或psql中的\dt 您正在寻找显示表格听起来像 要查看表的模式,请使用descripe table\u name[误读] show tables; 您正在寻找显示表格听起来像 要查看表的模式,请使用descripe table\u name show tables; 或 或 正如另一位对表列表所说的,如果您想查看特定表的模式,请使用 SHOW CREATE

MySQL windows命令行客户端中是否有命令允许您查看数据库中的所有表,或显示特定表的架构,类似于sqlite3中的
.tables
或psql中的
\dt

您正在寻找
显示表格
听起来像

要查看表的模式,请使用
descripe table\u name

[误读]

show tables;
您正在寻找
显示表格
听起来像

要查看表的模式,请使用
descripe table\u name

show tables;


正如另一位对表列表所说的,如果您想查看特定表的模式,请使用

SHOW CREATE TABLE foobar;

正如另一位对表列表所说的,如果您想查看特定表的模式,请使用

SHOW CREATE TABLE foobar;

显示表格
用于显示所有表格。我发现
descripe table。这就是我要找的。查询信息架构可以找到更多信息。请看一下select*from information_schema.columns,其中table_name='your_table'和table_schema='your_db'。问候;)或者,以更清晰的详细形式,
SHOW CREATE TABLE foo
SHOW TABLES
可以显示所有表格。我发现
descripe table。这就是我要找的。查询信息架构可以找到更多信息。请看一下select*from information_schema.columns,其中table_name='your_table'和table_schema='your_db'。问候;)或者,以更清晰的详细形式,
SHOW CREATE TABLE foo