Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 19:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HOW TO] Auto increment in MSSQL

Discussion on [HOW TO] Auto increment in MSSQL within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
janvier123's Avatar
 
elite*gold: 20
Join Date: Nov 2007
Posts: 2,854
Received Thanks: 1,891
[HOW TO] Auto increment in MSSQL

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 Code:
CREATE TABLE [dbo].[new_table](
[
recNum] [intIDENTITY(1,1)
)

or

ALTER TABLE [dbo].[new_table]
ADD [recNum] [intIDENTITY(1,1
Source:
janvier123 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Guide]Srevolution Full Guide Mssql + Mssql Server Manager + Server Files
01/17/2014 - SRO Coding Corner - 661 Replies
First you need MSSQL Server + MSSQL Manager Serve + Server Filesr Download Link : -Mssql Manager + Mssql Server -Server Files - Downlaod Server Files
[HELP] MSSQL in C++
11/10/2009 - CO2 Programming - 2 Replies
So I've recently started to work with C++ and I'm facing rather annoying problem, databases. I'm using MSSQL and it seems like there is no proper tutorial on how to use it on the internet. Has anyone used MSSQL and C++ together and if you did, did you use third party library or did you build your database wrapper from scratch? I'm not really into using MySql (irony is that you can find a lot of tutorials on this) so I'm using MSSQL. Any help setting this up would be greatly appreciated.
[Help[ How Increment Item Quality Drop
09/10/2009 - CO2 Private Server - 0 Replies
Hello everyone I ask a lots of question this day, srry for that, but now I have a small problem Please help me to solvent this, In bird Only drop Normal item, I need this drop some Elite unique and Super items, but not much, When I atack a birdman this said this codec "2006-1-1 0:00 2006-2-9 20:00". Any one know about this?



All times are GMT +1. The time now is 19:49.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.