0

I have two value in one table in database which I need to autoincrement. First value is ID it's a primary kay and it is setup as Identity Column and have (Is Identity) - Yes in properties. And how setup my second value (number) to autoincrement. When I setup his property (Is Identity) yes it automaticly change Identity Column for number.

Is possible to meke autoincrement for two value in one table in sql?

1
  • 1
    Are you talking about MySQL or SQL Server? Auto increment is mysql, where Identity is SQL Server.. Commented Jan 3, 2012 at 19:28

1 Answer 1

3

It is not possible to have more than one identity column in a table (and I can't think of a valid reason for wanting to do so anyhow).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.