dugasz1 Posted August 22, 2013 Share Posted August 22, 2013 Hello! how can i make a column to auto incret like in mysql? Link to comment
golanu21 Posted August 22, 2013 Share Posted August 22, 2013 ID int NOT NULL AUTO_INCREMENT Link to comment
dugasz1 Posted August 22, 2013 Author Share Posted August 22, 2013 Thank you:) Can you write me an example what is set id to primary and AI? Link to comment
golanu21 Posted August 22, 2013 Share Posted August 22, 2013 function createVehicleDB() executeSQLCreateTable("Vehicles", "CarID INT AUTO_INCREMENT PRIMARY KEY, ModelID INT") end addEventHandler("onResourceStart", getRootElement(), createVehicleDB) this is an example Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now