Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
Loading... 

Thread: how to create an auto-increment process? - Oracle


Started 2 years, 8 months ago by mawarzinnirah
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 ...
Site: www.daniweb.com - IT Tech Talk  www.daniweb.com - IT Tech Talk - site profile
Forum: Oracle  Oracle - forum profile
Total authors: 4 authors
Total thread posts: 5 posts
Thread activity: no new posts during last week
Domain info for: daniweb.com

Other posts in this thread:

debasisdas replied 2 years, 8 months ago
I don't think that is in ORACLE. R u sure.

davidcairns replied 2 years, 8 months ago
It's definately Oracle. The first statement there is not actually valid, it's just describing the existing table for you The next one creates an incrementing sequence, however I would never use a trigger to implement it as you can't find out what the value of the sequence is without requerying the table. Then you have to rely on the line being easily identifiable without having it's ...

debasisdas replied 2 years, 8 months ago
sorry dear the statment auto_increment is not valid in oracle , so it is not it oracle but in postgre sql .Restall u can aany way define in oracle.

sillyboy replied 2 years, 8 months ago
Just get rid of "auto_increment". I think it'll work with int(13), if not, just use NUMBER.

 

Top contributing authors

Name
Posts
debasisdas
2
user's latest post:
how to create an auto-increment...
Published (2007-07-06 05:35:50)
sorry dear the statment auto_increment is not valid in oracle , so it is not it oracle but in postgre sql .Restall u can aany way define in oracle.
mawarzinnirah
1
user's latest post:
how to create an auto-increment...
Published (2007-06-26 05:35:49)
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...
davidcairns
1
user's latest post:
how to create an auto-increment...
Published (2007-06-29 05:35:50)
It's definately Oracle. The first statement there is not actually valid, it's just describing the existing table for you The next one creates an incrementing sequence, however I would never use a trigger to implement it as you can't find out what the value of the sequence is without requerying the table. Then you have to rely on the line being easily identifiable without having it's primary key, pretty ugly. Create the...
sillyboy
1
user's latest post:
how to create an auto-increment...
Published (2007-07-06 05:35:50)
Just get rid of "auto_increment". I think it'll work with int(13), if not, just use NUMBER.

Related threads on "www.daniweb.com - IT Tech Talk":

Related threads on other sites:

Thread profile page for "how to create an auto-increment process? - Oracle" on http://www.daniweb.com. This report page is a snippet summary view from a single thread "how to create an auto-increment process? - Oracle", located on the Message Board at http://www.daniweb.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity