This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dido:public:s_cli:05_contents:01_prt:06_dddl:constant [2021/04/05 21:35] nick |
dido:public:s_cli:05_contents:01_prt:06_dddl:constant [2021/06/15 13:34] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 2.2.1 CREATE CONSTANT Command ====== | + | ====== 5.1 Constants ====== |
| - | [[dido:public:s_cli:05_contents:01_dll | Return to DidoDLL]] | + | [[dido:public:s_cli:05_contents:01_prt:04_dll:start| Return to DidoDLL]] |
| ===== Purpose ===== | ===== Purpose ===== | ||
| - | [[dido:public:s_cli:05_contents:05_ddl:constant| Return to Top]] | + | [[dido:public:s_cli:05_contents:01_prt:06_dddl:constant| Return to Top]] |
| Line 15: | Line 15: | ||
| ===== Syntax ===== | ===== Syntax ===== | ||
| - | [[dido:public:s_cli:05_contents:05_ddl:constant| Return to Top]] | + | [[dido:public:s_cli:05_contents:01_prt:06_dddl:constant| Return to Top]] |
| <code> | <code> | ||
| - | CREATE CONSTANT <ConstantName> AS <SimpleExpression>; | + | DEFINE CONSTANT <ConstantName> AS <SimpleExpression>; |
| </code> | </code> | ||
| ==== Where ==== | ==== Where ==== | ||
| - | [[dido:public:s_cli:05_contents:05_ddl:constant| Return to Top]] | + | [[dido:public:s_cli:05_contents:01_prt:06_dddl:constant| Return to Top]] |
| - | * **ConstantName** ::= textual name associated with the Constant | + | * **ConstantName** ::= textual name associated with the Constant |
| * **SimpleExpression** ::= NumericConstant | CharacterConstant | StringConstant | * **SimpleExpression** ::= NumericConstant | CharacterConstant | StringConstant | ||
| ==== Examples ==== | ==== Examples ==== | ||
| - | [[dido:public:s_cli:05_contents:05_ddl:constant| Return to Top]] | + | [[dido:public:s_cli:05_contents:01_prt:06_dddl:constant| Return to Top]] |
| <code sql | Examples of Defining Constants in DidoLL> | <code sql | Examples of Defining Constants in DidoLL> | ||
| - | CREATE CONSTANT Precision AS 2 | + | DEFINE CONSTANT Precision AS 2 |
| - | CREATE CONSTANT Version AS 3.5.1 | + | DEFINE CONSTANT Version AS 3.5.1 |
| - | CREATE CONSTANT Currency_Symbol AS '§' | + | DEFINE CONSTANT Currency_Symbol AS '§' |
| - | CREATE CONSTANT Currency_Name AS "My Coin" | + | DEFINE CONSTANT Currency_Name AS "My Coin" |
| </code> | </code> | ||