Home » SQL & PL/SQL » SQL & PL/SQL » ROWID
ROWID [message #6430] Wed, 16 April 2003 11:10 Go to next message
Dean
Messages: 34
Registered: August 2000
Member
Hi
I am trying to create a unique ID for a cust_id field through the sql+ interface. I want the cust_id to be incremented by 1 every time a new custoemr is added through the sql+ interface as well as through Oracle forms. i have been reading a few books, and they mention the use of the datatype ROWID, just wondering if this is the way a new customer could be automatically issued with a unique id? If so how would I set a table up through sql+ assigning the data type to my cust_id?

Any ideas?
Re: ROWID [message #6432 is a reply to message #6430] Wed, 16 April 2003 12:49 Go to previous message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
No, you do not want to use ROWID to identify your customers. That is for internal Oracle use only.

Your original approach to use a sequence was the correct approach - why are you trying to find another unique identifier?
Previous Topic: ORA-01552 Error
Next Topic: Why is Sum not working
Goto Forum:
  


Current Time: Fri Apr 26 07:10:52 CDT 2024