Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[HOW TO] Auto increment in MSSQL Dekaron

Newbie Spellweaver
Joined
Dec 23, 2008
Messages
46
Reaction score
29
i post here becuz ive found it useful for php scripters

I need to increment a field in every addition of a new record... what is the script for the auto increment in a create statement and alter table statement...

PHP:
CREATE TABLE [dbo].[new_table](
[recNum] [int] IDENTITY(1,1)
)

or

ALTER TABLE [dbo].[new_table]
ADD [recNum] [int] IDENTITY(1,1)

Source:

PS: this is dekaron related
 
Back
Top