how to drop a column in sql code example

Example 1: how remove column in mysql

ALTER TABLE "table_name" DROP "column_name";

Example 2: drop columnsql

ALTER TABLE table_name
DROP COLUMN column_name

Example 3: mysql drop column

ALTER TABLE `claims_user_settings` DROP COLUMN `super_user`;

Example 4: sql drop column

ALTER TABLE my_schema.my_table DROP COLUMN my_column;

Example 5: sql delete column

Deletes a column from a table.
Example: Removes the first_name column from the users table.
ALTER TABLE users
DROP COLUMN first_name

Example 6: sql remove column from table

ALTER TABLE tableName DROP columnName;

Tags:

Php Example