Skip to content

Instantly share code, notes, and snippets.

@Guibzs
Last active January 25, 2019 13:07
Show Gist options
  • Save Guibzs/6c83d03e55fc2617cf7b4903737821d0 to your computer and use it in GitHub Desktop.
Save Guibzs/6c83d03e55fc2617cf7b4903737821d0 to your computer and use it in GitHub Desktop.
MySQL ~ Views
CREATE OR REPLACE VIEW table_name AS
SELECT p.title, c.name FROM post AS p INNER JOIN category AS c ON p.category_id = c.ID;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment