Created
November 21, 2017 01:28
-
-
Save xiuhy/ef6e7df3385dc8aaac38469d0a8bbcab to your computer and use it in GitHub Desktop.
mysql批量copy表结构和数据
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- a 表存在, | |
insert into a select * from bTable | |
-- a 表不存在。并且复制b表表结构(包括字段备注) | |
create table a as select * from bTable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment