May 2020
Beginner
564 pages
14h 9m
English
Oracle and PostgreSQL don't have the same functionality as the ALTER keyword. In order to change the view definition, you will need to use CREATE OR REPLACE VIEW, as shown in the following query:
CREATE OR REPLACE VIEW parksalias ASSELECT parkalias, parkkey, parkname, city, state, countryFROM parks_copyWHERE parkalias IS NOT NULLWITH CHECK OPTION;
The preceding query will replace the view if it already exists or create it if it doesn't.
Read now
Unlock full access