mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01:00
2021-08-17 Fred Gleason <fredg@paravelsystems.com>
* Added disambiguation info regarding apostrophes vs. backticks to the 'SQL STATEMENTS' section of 'CODINGSTYLE'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -179,7 +179,8 @@ SQL STATEMENTS:
|
||||
When embedding SQL statements in code, the following guidelines should be
|
||||
followed:
|
||||
|
||||
1) All identifier fields should be enclosed in backtick characters.
|
||||
1) All identifier fields should be enclosed in backticks (ASCII 0x2C)
|
||||
characters (NOT to be confused with apostrophes, see below).
|
||||
|
||||
Good:
|
||||
sql="select `FIELD1`,`FIELD2` from `MY_TABLE` where `ID`=2";
|
||||
|
||||
Reference in New Issue
Block a user