Whats the purpose of having single column table (identity column)? Is there a good use-case available?
Is it really a good practice?
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.
I think people use this to replicate Oracle’s SEQUENCE. Basically they want a single unique identifier for any entity they create in their system, so they have something like this:
Now whenever they want to add a new contact, or customer, or order, etc. they first call this procedure and get the new identifier. Then only one entity in the system will have an identifier = 1, or 2, etc.