create sequence LP3_MIEJSCA_SEQ; alter table LP3_MIEJSCA add M_ID number(10); update LP3_MIEJSCA set M_ID = LP3_MIEJSCA_SEQ.nextval; alter table LP3_MIEJSCA drop primary key; alter table LP3_MIEJSCA add constraint M_PK primary key(M_ID);