.\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $ ALTER VIEW - Online Linux Manual Page
Section : 7
Updated : 2014-02-17
Source : SQL - Language Statements
Note : SQL Commands
NAMEALTER VIEW − change the definition of a view
SYNOPSISALTER VIEW name ALTER [ COLUMN ] column SET DEFAULT expression
ALTER VIEW name ALTER [ COLUMN ] column DROP DEFAULT
ALTER VIEW name OWNER TO new_owner
ALTER VIEW name RENAME TO new_name
ALTER VIEW name SET SCHEMA new_schema
DESCRIPTIONALTER VIEW changes various auxiliary properties of a view. (If you want to modify the view's defining query, use CREATE OR REPLACE VIEW.) You must own the view to use ALTER VIEW. To change a view's schema, you must also have CREATE privilege on the new schema. To alter the owner, you must also be a direct or indirect member of the new owning role, and that role must have CREATE privilege on the view's schema. (These restrictions enforce that altering the owner doesn't do anything you couldn't do by dropping and recreating the view. However, a superuser can alter ownership of any view anyway.)
PARAMETERSname The name (optionally schema-qualified) of an existing view. SET/DROP DEFAULT These forms set or remove the default value for a column. A default value associated with a view column is inserted into INSERT statements on the view before the view's ON INSERT rule is applied, if the INSERT does not specify a value for the column. new_owner The user name of the new owner of the view. new_name The new name for the view. new_schema The new schema for the view.
NOTESFor historical reasons, ALTER TABLE can be used with views too; but the only variants of ALTER TABLE that are allowed with views are equivalent to the ones shown above.
EXAMPLESTo rename the view foo to bar: ALTER VIEW foo RENAME TO bar;
COMPATIBILITYALTER VIEW is a PostgreSQL extension of the SQL standard.
SEE ALSOCREATE VIEW [create_view(7)], DROP VIEW [drop_view(7)] 0
Johanes Gumabo
Data Size : 8,902 byte
man-alter_view.7Build : 2025-03-22, 13:26 :
Visitor Screen : x
Visitor Counter ( page / site ) : 60 / 5,713,734
Visitor ID : :
Visitor IP : 216.73.216.10 :
Visitor Provider : Amazon.com, Inc. :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 20 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_escape_sequence|93|alter_view.7|1|\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $ |.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $
) (parse_manual_page_|254|alter_view.7|1|\"|.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $
)