Difference between revisions of "SET SQLDIALECT"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 11: | Line 11: | ||
==Syntax== | ==Syntax== | ||
− | SET | + | SET SQLDIALECT TO RECITAL | VFP | MYSQL |
+ | |||
+ | |||
+ | ==See Also== | ||
+ | [[SET SQL]] | ||
Line 42: | Line 46: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
− | [[Category:Set_Commands]] | + | [[Category:Set_Commands|SQLDIALECT]] |
[[Category:SQL]] | [[Category:SQL]] |
Revision as of 16:34, 11 March 2009
Contents
SET SQLDIALECT
Class
SQL Applications
Purpose
Configure SQL statement syntax
Syntax
SET SQLDIALECT TO RECITAL | VFP | MYSQL
See Also
Description
Where Recital, MySQL and VFP differ in their SQL syntax, the SET SQLDIALECT command can be used to select the syntax to be used.
By default, SET SQLDIALECT is set to RECITAL. Since the SET SQLDIALECT setting affects program compilation, it should be set prior to compilation rather than in a program itself, for example in a config.db configuration file.
NOTES:
The semi-colon, ’;’, is used to terminate SQL statements when SQLDIALECT is set to RECITAL or MYSQL. It is used as a line continuation character when SQLDIALECT is set to VFP.
EXEC SQL When SQLDIALECT is set to RECITAL, SQL statements embedded in programs must be preceded by the EXEC SQL statement unless SET SQL is ON.
.sql programs When a program with a ’.sql’ file extension is run, SQLDIALECT is automatically set to MYSQL and SET SQL is set ON.
Example
set sqldialect to vfp set sql to mysql set sql on
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer