drop column mysql code example

Example 1: how remove column in mysql

ALTER TABLE "table_name" DROP "column_name";

Example 2: mysql drop column

ALTER TABLE `claims_user_settings` DROP COLUMN `super_user`;

Example 3: add column in mysq

ALTER TABLE Table_name
ADD Email varchar(255);

Example 4: how delete a column in mysql

ALTER TABLE table_name
  DROP COLUMN column_name;

Example 5: mysql add column

ALTER TABLE table_name
ADD [COLUMN] column_name column_definition [FIRST|AFTER existing_column];

Example 6: alert table name mysql

ALTER TABLE exampletable RENAME TO new_table_name;

Tags:

Php Example