mysql

查看mysql的版本和存在的数据库?

select version(),database();

新建一张话和现有的某长表结构一直的表

create table new_table like original_table;

完全复制一张表

insert into newtable select * from original_table;

从一张表中复制部分数据

insert into dst_tb1(i,s)select val,name from src_tb1;

原文地址:https://www.cnblogs.com/seasonsstory/p/3062898.html