The command to delete columns in SQL is ALTER TABLE DROP COLUMN, which is used to modify the table structure and delete specified columns. The steps include: 1. Specify the table name to be modified; 2. Use the DROP COLUMN clause to specify the column name to be deleted.

The command to delete a column in SQL isALTER TABLE, which allows the table to be modified Structure, including deleting columns.
<code class="sql">ALTER TABLE table_name DROP COLUMN column_name;</code>
table_name. DROP COLUMN clause to specify the column name column_name to be deleted. Suppose there is a table named employee that contains the following columns:
| Column name | Data type |
|---|---|
| id | int |
| name | varchar(255) |
| age | int |
| address | text |
To delete the address column, you can use the following command:
<code class="sql">ALTER TABLE employee DROP COLUMN address;</code>
The above is the detailed content of command to delete column in sql. For more information, please follow other related articles on the PHP Chinese website!