Collections:
"ALTER TABLE ... DROP COLUMN" - Deleting Existing Columns in SQL Server
How To Delete an Existing Column in a Table with "ALTER TABLE ... DROP COLUMN" in SQL Server?
✍: FYIcenter.com
If you have an existing column in a table and you do not need that column any more, you can delete it with "ALTER TABLE ... DROP COLUMN" statement. Here is a tutorial script to delete an existing column:
ALTER TABLE tip DROP COLUMN create_date GO SELECT * FROM tip GO id subject description author 1 Learn SQL Visit dev.fyicenter.com NULL
As you can see, the column "create_date" is gone.
⇒ "sp_rename ... 'COLUMN'" - Renaming an Existing Column in SQL Server
⇐ "ALTER TABLE ... ADD" - Adding New Columns to Existing Tables in SQL Server
2016-11-17, 3392🔥, 0💬
Popular Posts:
How To Install Oracle Database 10g XE in Oracle? To install 10g universal edition, double click, Ora...
How To Break Query Output into Pages in MySQL? If you have a query that returns hundreds of rows, an...
How To Use GO Command in "sqlcmd" in SQL Server? "sqlcmd" is a command line client application to ru...
How To Convert Character Strings into Numeric Values in SQL Server Transact-SQL? Sometimes you need ...
How To List All Login Names on the Server in SQL Server? If you want to see a list of all login name...