Re: INSERT, UPDATE, REPLACE INTO alternate key
Yes, eg ...
drop table if exists tblbak, tblnew;
create table tblbak select * from tbl;
create table tblnew like tbl;
alter table tblnew add column id int unsigned primary key auto_increment first;
insert into tblnew(col1,col2,...) select * from tbl;
drop table tbl;
rename table tblnew to tbl;
Subject
Written By
Posted
December 19, 2012 12:58PM
Re: INSERT, UPDATE, REPLACE INTO alternate key
December 19, 2012 01:46PM
December 19, 2012 04:35PM
December 19, 2012 05:16PM
December 23, 2012 01:39PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.