1. Home
  2. Docs
  3. PHP Style Guide
  4. SQL Queries

SQL Queries

SQL keywords are always capitalized: SELECT, INSERT, UPDATE, WHERE, AS, JOIN, ON, IN, etc.

Break up long queries into multiple lines for legibility, preferably breaking for each clause.

INCORRECT:

CORRECT:

Was this article helpful to you? Yes No

How can we help?