hello...
i have a little problem about how to create an auto-increment process. i'm using an oracle and all the table and data is already exist in my database. I have seen a few example from internet and it is like this.
table users {
id int(13) not null auto_increment,
name varchar( 45 ) not null default '',
email varchar( 55 ) not null default '',
website varchar( 100 ) not null default '',
primary key( id )
}
create sequence test_seq
start with 1
increment by 1
nomaxvalue;
create trigger test_trigger
before insert on barkod
for each row
begin
Select test_seq.nextval into:new.barkod from dual;
end;
should i follow this example even all the tables and data are already exist in my database?? hope anyone in here can show step by step how to create it.
~really need help her...
~thank you...