0

I am using the SHOW CREATE TABLE command to get a create code for my table. However, I noticed that the create command is missing a few features.

For instance, it doesn't have an IF NOT EXISTS parameter. It also lists the AUTO_INCREMENT=# position at the end; which isn't really needed since its an auto increment.

Is there any way to add parameters to the query to fix these issues?

4

2 回答 2

2

我认为您对包含更多信息的 mysql 转储更感兴趣。

但是,特别是对于“如果不存在”,您必须使用脚本或 grep 替换它。

参考:

如果不存在则从 mysqldump 创建表

于 2013-08-15T00:17:52.827 回答
0

啊……简单……不,你不能。检查文档

于 2013-08-15T00:17:45.037 回答