TheRock254 Posted April 30, 2016 Share Posted April 30, 2016 dbExec(database, "ALTER TABLE table_name ADD columd_name DATATYPE") I use this code for create new column but if column is exists, it's give warning. How can i get is the column exists? Link to comment
Anubhav Posted April 30, 2016 Share Posted April 30, 2016 "ALTER TABLE table_name ADD IF NOT EXISTS columd_name DATATYPE" i guess this Link to comment
roaddog Posted April 30, 2016 Share Posted April 30, 2016 Try JR10 method here https://forum.multitheftauto.com/viewtopic.php?f ... le#p774790 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