i want that the userid is auto incremented
bsed on
SELECT @UserID=(MAX(UserID) + 1) FROM [User]
but 1st time how to userid will insert 1 respect of userid.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ranjit PowarRank #553 · 4.4K reputationPosted Jun 28, 2016, 4:07 AM EDT