info > DROP_VIEW(7)

πŸ“› NAME

DROP_VIEW β€” remove a view

πŸš€ Quick Reference

Use CaseCommandDescription
Drop a single viewDROP VIEW view_name;Removes the view if it exists and you own it.
Drop view only if it existsDROP VIEW IF EXISTS view_name;No error if the view is missing; a notice is issued.
Drop view with all dependenciesDROP VIEW view_name CASCADE;Automatically drops objects that depend on the view.
Drop multiple viewsDROP VIEW view1, view2;Removes several views in one command.

πŸ“‹ Synopsis

DROP VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

πŸ“ Description

DROP VIEW drops an existing view. To execute this command you must be the owner of the view.

βš™οΈ Parameters

πŸ’‘ Examples

This command will remove the view called kinds:

DROP VIEW kinds;

πŸ”— Compatibility

This command conforms to the SQL standard, except that the standard only allows one view to be dropped per command, and apart from the IF EXISTS option, which is a PostgreSQL extension.

πŸ“š See Also

ALTER VIEW (ALTER_VIEW(7)), CREATE VIEW (CREATE_VIEW(7))

PostgreSQL 14.23 β€” 2026

DROP_VIEW(7)
πŸ“› NAME πŸš€ Quick Reference πŸ“‹ Synopsis πŸ“ Description βš™οΈ Parameters πŸ’‘ Examples πŸ”— Compatibility πŸ“š See Also

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-24 03:43 @216.73.216.102
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!