Skip to content

Instantly share code, notes, and snippets.

@xiuhy
Created November 21, 2017 01:28
Show Gist options
  • Save xiuhy/ef6e7df3385dc8aaac38469d0a8bbcab to your computer and use it in GitHub Desktop.
Save xiuhy/ef6e7df3385dc8aaac38469d0a8bbcab to your computer and use it in GitHub Desktop.
mysql批量copy表结构和数据
-- 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