PostgreSQL Alter View

The PostgreSQL Alter View Tool allows users to alter views by changing the view query using drop and create SQL statements.

Listed below is example SQL generated by the Alter View Tool.

DROP VIEW sample.public.employee_view

CREATE VIEW sample.public.employee_view (ssn,fname,minit,lname,address,sex,salary,superssn,dno) AS
SELECT employee.ssn, employee.fname, employee.minit, employee.lname, employee.address, employee.sex, employee.salary, employee.superssn, employee.dno FROM employee;