Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql add column if not exists

ALTER TABLE test ADD COLUMN IF NOT EXISTS column_a VARCHAR(255);
 
PREVIOUS NEXT
Tagged: #mysql #add #column #exists
ADD COMMENT
Topic
Name
1+5 =