当前位置:网站首页>MySQL replication table
MySQL replication table
2022-07-19 03:03:00 【xiejunna】
This want to use Create table Table2 (Select * from Table1); This statement , But it turns out , No problem with data copying , But in the table structure primary key,Extra,auto_increment And other properties are gone , Only give up this method .
Using this method :
// Show table creation statement , Copy the table creation statement , Change the table name to the table name of the new table , Create table
SHOW CREATE TABLE `ori_table`;
// Copy the data of the original table to the new table
INSERT INTO `new_table` SELECT * FROM `ori_table`;
边栏推荐
- 【单片机仿真】(九)指令系统 — 算术运算指令 之 ADD、ADDC、SUBB、INC、DEC、DA
- 05-中央处理器
- BiSeNetV1 面部分割
- Advanced usage of the responsibility chain pattern
- The place where the dream begins ---- first knowing C language
- DHCP service
- Summary of the most complete methods of string interception in Oracle
- 【单片机仿真】(七)寻址方式 — 位寻址
- 快照:数据快照(数据兜底方式)
- JDBC连接Mysql数据库
猜你喜欢
随机推荐
Redis' simple dynamic string SDS
[NoSQL] redis master-slave, sentinel, cluster
Redis之简单动态字符串SDS
功能测试真的没有出路了吗?10k封顶从来不是开玩笑的.....
【单片机仿真】(二十一)DB(Define Byte)— 定义字节
HCIA summary
当你在Linux系统中编译安装MySQL数据库卡住了怎么办?
The place where the dream begins ---- first knowing C language
All dates in Oracle query time period
Detailed explanation of case when usage of SQL
【单片机仿真】(十二)指令系统逻辑运算指令 — 逻辑异或指令XRL、累加器清0和取反指令
快照:数据快照(数据兜底方式)
Systick timer basic learning and hand tearing code
ncnn Allocator内存分配器
MySQL数据库中的事务和存储引擎
LETV has more than 400 employees? Living a fairy life without a boss, the official responded
人脸检测几种方法
while 循环
Nat comprehensive experiment
ResNet学习笔记









