1. 程式人生 > >insert into 和select into 插入記錄的區別

insert into 和select into 插入記錄的區別

insert into table2(filed1,field2,...)select 
value1,value2,... from table1

可以從同一張表裡面讀取記錄,插入表中

select * into table2 from table1 

從table1表裡面讀取記錄,插入到表table2中,需要不一樣的兩張表,也可以資料備份的時候使用