📚 Looking for current Exponential documentation? This site contains legacy SDK & API reference docs (eZ Publish era). For up-to-date 2026 product documentation, visit doc.exponential.earth.

  doc / sql_coding_standard  

<< PHP  Template >> 

Syntax

SQL commands are written in all capital letters.

SELECT * FROM
  ezuser
WHERE
  id='$user_id'
HAVING
  age > '42'
LIMIT 0,20

SELECT a, b as c FROM
  ezcontentobject,
  ezcontentobject_attribute,
  ezcontentobject_version
WHERE
  ezcontentobject.id = ezcontentobject_version.contentobject_id AND
  ezcontentobject.id = '42'
LIMIT 0, 20

Tables

Table names should be in English. The names should be grammatically correct. Table names with several words should be separated with capital letters.

Example:

ezuser
ezcontentobject_version
ezcontentclass_attribute

Row names should be named in a similar manner.

Example:

ezuser
{
  id int,
  first_name varchar(150),
  last_name varchar(150),
  login varchar(150)
}

Exponential Copyright © 1998 - 2026 7x