Actions

Database 101

From kemiko

Revision as of 20:39, 26 November 2017 by Kemiko (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • Always do a "select" before a "delete"
  • Rename objects before deleting
  • Always use a "where" clause..."where 1" or "where 1 = 1" for all queryies or add a comment to make it clear that the query is selecting everything
  • Self joins can be handy
  • Use ANSI joins for clarity
  • Format SQL to for consistency and readability