To remove a column from existing database table, used SQL ALTER command. The following SQL statement is used to remove or delete a column 'stuMarks' from existing above table,
alter table Student
drop column stuMarks;
In the above example 'stuMarks' column is deleted successfully.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
SQL Add column in existing Table :
To Add a column in existing table in SQL database we can use SQL ALTER command. The following SQL statement is used to Add a column in existing table.
Lets take a database table 'Student',
Now, the following SQL Statement is used to add a Column 'stuMarks' in above table,
Remove Column from existing table :
To remove a column from existing database table, used SQL ALTER command. The following SQL statement is used to remove or delete a column 'stuMarks' from existing above table,
In the above example 'stuMarks' column is deleted successfully.