Collections:
Drop an Existing Table in Oracle
How To Drop an Existing Table in Oracle?
✍: FYIcenter.com
If you want to delete an existing table and its data rows, you can use the DROP TABLE statement as shown in this script:
SQL> connect HR/fyicenter Connected. SQL> CREATE TABLE emp_dept_10 2 AS SELECT * FROM employees WHERE department_id=10; Table created. SQL> DROP TABLE emp_dept_10; Table dropped.
Be careful, when you use the DROP TABLE statement. All data rows are gone too.
2019-05-25, 808👍, 0💬
Popular Posts:
How To Create a Stored Function in Oracle? A stored function is a function with a specified name and...
How To List All Stored Procedures in the Current Database in SQL Server Transact-SQL? If you want to...
What is Microsoft SQL Server in SQL Server? Microsoft SQL Server is a relational database management...
Why I Can Not Enter 0.001 Second in DATETIME values in SQL Server Transact-SQL? If you enter millise...
What Causes Index Fragmentation in SQL Server? Index fragmentation is usually caused by deleting of ...