Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/72.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
Java Mysql创建sql多表_Java_Mysql - Fatal编程技术网

Java Mysql创建sql多表

Java Mysql创建sql多表,java,mysql,Java,Mysql,有可能得到这样的输出吗 dbName tableName createSql test t1 create table t1 ( id int not null ) test t2 create table t2 ( id int not null ) prod t9 create table t9 ( id int not null ) 在mysql中使用一个简单的sql查询。您可以尝试从信息中重新创建create语句,但

有可能得到这样的输出吗

dbName  tableName  createSql
test    t1         create table t1 ( id int not null )
test    t2         create table t2 ( id int not null )
prod    t9         create table t9 ( id int not null )

在mysql中使用一个简单的sql查询。

您可以尝试从信息中重新创建create语句,但可能有人已经这样做了;你可以简单地循环所有的表,做一个显示,创建,然后相应地总结它;也可以编写一个SP来执行此操作。另一个选项是mysqldump-d