Answer the question
In order to leave comments, you need to log in
ALTER TABLE IF NOT EXISTS throws an error?
ALTER TABLE table ADD COLUMN IF NOT EXISTS name
Tell me why it gives an IF NOT EXISTS error, there are no errors on the localhost, but an error on the server.
Is there a replacement IF NOT EXISTS, if there is a name structure in the table table, then skip it, if it is not there, add it
Answer the question
In order to leave comments, you need to log in
Method
ADD COLUMN IF NOT EXISTSonly implemented in MariaDB but does not exist in MySQL 5-8.
SELECT VERSION();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question