I mostly work with sql-server (when I do work with databases) and I am trying to learn pl-sql.
Is there any equivalent to sql-server’s auto-generated Guid as primary keys in Oracle?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
SYS_GUID()to generate a GUID, and use it as DEFAULT value of a column:EDIT:
See answers to this question for more details.