Available in:
Apps (win)
Apps (char)
Reportwriter
RPC
Standalone PL
X
X
X
X
X
string sql_xlate(statement [,did]) string statement int did
statement | specifies the SQL statement to translate. | |
did | (optional) specifies the target database (as defined in trim.h) so the function can take into account specific database characteristics, such as case-sensitivity. Specifying (-1) means do only the bind variable replacement without translating the SQL syntax. |
You must put the function mapping strings you intend to use in the file specified by sql_xlate_file. For more information about SQL syntax mapping, refer to the DesignVision Users Guide.
{ ... db2sql = sql_xlate("select decode (id,42,16,23) from staff",db_db2); ... }