设为首页 加入收藏

TOP

MySQL同实例下复制表的2种方法
2017-04-21 10:22:58 】 浏览:7343
Tags:MySQL 实例 制表 方法

很简单的MySQL同实例下复制表的方法,可以略过。


需求:
在test库下创建表,要求导入hellodb.students的数据。


方法1:
use test;
create table t2 as select * from hellodb.students;


方法2:
use test;
create table t1 like hellodb.students;
insert into t1 select * from hellodb.students;


方法2的效果更好,具体可以看下图。



】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇MySQL5.6的密码存放方式基础知识 下一篇sysbench对数据库进行压力测试

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目