Collections:
"DROP TABLE" - Deleting Existing Tables in SQL Server
How To Drop an Existing Table with "DROP TABLE" Statements in SQL Server?
✍: FYIcenter.com
If you want to delete an existing table and its data rows, you can use the "DROP TABLE" statement as shown in the tutorial script below:
SELECT * FROM tipBackup GO id subject description create_date 1 Learn SQL Visit dev.fyicenter.com 2006-07-01 DROP TABLE tipBackup GO SELECT * FROM tipBackup GO Msg 208, Level 16, State 1, Line 1 Invalid object name 'tipBackup'.
Be careful, when you use the "DROP TABLE" statement. All data rows are gone too.
⇒ Understanding and Managing Indexes in SQL Server
⇐ "sp_rename ... 'OBJECT'" - Renaming Existing Tables in SQL Server
2016-11-15, 2044🔥, 0💬
Popular Posts:
How To Count Rows with the COUNT(*) Function in SQL Server? If you want to count the number of rows,...
How Fixed Length Strings Are Truncated and Padded in SQL Server Transact-SQL? When the length of the...
How To Convert Numeric Values to Integers in SQL Server Transact-SQL? Sometimes you need to round a ...
How To Get a List of All Tables with "sys.tables" View in SQL Server? If you want to see the table y...
What Happens to Your Transactions When ERROR 1213 Occurred in MySQL? If your transaction receives th...