The tokens MY_TABLE and A are examples of identifiers.
They identify names of tables, columns, or other database objects, depending on the command they are used in. Therefore they are sometimes simply called “names”. Key words and identifiers have the same lexical structure, meaning that one cannot know whether a token is an identifier or a key word without knowing the language
SQL identifiers and key words must begin with a letter (a-z, but also letters with diacritical marks and non-Latin letters) or an underscore (_). Subsequent characters in an identifier or key word can be letters, underscores, digits (0-9), or dollar signs ($). Note that dollar signs are not allowed in identifiers according to the letter of the SQL standard, so their use might render applications less portable. The SQL standard will not define a key word that contains digits or starts or ends with an underscore, so identifiers of this form are safe against possible conflict with future extensions of the standard.
Key words and unquoted identifiers are case-insensitive. Therefore:
UPDATE MY_TABLE SET A = 5;
can equivalently be written as:
uPDaTE my_TabLE SeT a = 5;
A convention often used is to write key words in upper case and names in lower case, e.g.:
UPDATE my_table SET a = 5;
Key words and unquoted identifiers are case-insensitive. Therefore:
UPDATE MY_TABLE SET A = 5;
can equivalently be written as:
uPDaTE my_TabLE SeT a = 5;
A convention often used is to write key words in upper case and names in lower case, e.g.:
UPDATE my_table SET a = 5;
For everything else export the dictionary to a TXD file, and in a text editor like Notepad++ search for tables with existing table names and then search for tables with missing table names to fill in.
There’s 3 different ways a table name can be set.
First two stored in the Dct editor.
Stored in a variable (typically global) where the table name variable is prefixed with a $ in the Full Pathname dct editor field to tell the AppGen not to wrap the variable with single quotes.
The database and table name is simply written out in the Full Pathname field.
Last way is the database and table name is specified in program code using the NAME property (Prop:Name). This allows for swapping to identical format database servers where the server name changes like TestServ or ProductionServ but the app can not shut down and reload with new db server details.