Skip to content

Instantly share code, notes, and snippets.

@AayushSameerShah
Created December 8, 2021 14:02
Show Gist options
  • Select an option

  • Save AayushSameerShah/3817a4f6ccd191eaaf6f3aa6154dc4f0 to your computer and use it in GitHub Desktop.

Select an option

Save AayushSameerShah/3817a4f6ccd191eaaf6f3aa6154dc4f0 to your computer and use it in GitHub Desktop.
The go to list with views

Simple creating views

-- General Syntax
CREATE VIEW view_name AS
<SELECT QUERY>

Alter viewes

CREATE OR REPLACE VIEW view_name AS 
<UPDATED SELECT QUERY>

Drop views

DROP VIEW view_name

Rename view

ALTER VIEW old_name
RENAME TO new_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment