Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: UrbanY on Sep 12, 2018, 12:45 AM

Title: a command to organize numbers from 1 onwards in the db?
Post by: UrbanY on Sep 12, 2018, 12:45 AM
a command to organize numbers from 1 onwards in the db?
Title: Re: a command to organize numbers from 1 onwards in the db?
Post by: ! on Sep 12, 2018, 06:14 AM
Use AUTO INCREMENT rather using custom made functions.

QuoteAuto-increment allows a unique number to be generated automatically when a new record is inserted into a table.

Often this is the primary key field that we would like to be created automatically every time a new record is inserted.

Detailed Information & usage
Clicky (https://www.w3schools.com/sql/sql_autoincrement.asp)