I'm trying to drop multiple columns, but having some trouble. The syntax below works when I do ALTER TABLE
and ADD
with multiple values in the brackets ()
but it doesn't work with DROP COLUMN
. Am I using the wrong syntax?
$table3 = "
ALTER TABLE $table3_name
DROP COLUMN (
user_firstname,
user_lastname,
user_address,
user_address2,
user_city,
user_state,
user_zip,
user_phone
);
";