View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-03-2018 , 21:22   Re: SQL create column if not exists
Reply With Quote #10

You can use ALTER TABLE to add new columns.

ALTER TABLE tablename ADD columname columntype

The more rows your table has, the longer ALTER TABLE will take.

Edit: Having said that, this is an operation you should be doing manually and as a one-off thing.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 08-03-2018 at 22:55.
Powerlord is offline