一、復制表里面的一條記錄並插入表里面
insert into reyo(title,keywords,desc,contents) select
title,keywords,desc,contents from reyo where reyo_id = 100;
二、復制表里的多條數據/記錄,並插入到表里面
INSERT INTO `reyo`(title,type,status) SELECT title,type,status FROM reyo WHERE id < 5;
INSERT into reyo (num,overtime) SELECT num,overtime from reyo where id IN(1,3,5,6,7,9);
三、在創建表時,就插入另一張表里面的某些數據
create table reyo AS select * from member where id < 10