DROP VIEW

SQL DROP VIEW Keyword

The DROP VIEW command deletes a view from the database.

Tutorials dojo strip

SQL DROP VIEW Syntax

SQL

SQL DROP VIEW Example

Before you can drop a view, you must first create it. In our TechKubo playground, views are not permanent — they are deleted when the browser or tab is refreshed. Below is a full example of how to create and drop a view using the Patients table:

Step 1: Create a View (must be done in the same session)

SQL

Step 2: Drop the View

SQL

SQL DROP VIEW Labs

Tutorials dojo strip