OpenSQL Reference Guide > OpenSQL Reference Guide > Introduction > Conventions for Embedded OpenSQL Examples
Was this helpful?
Conventions for Embedded OpenSQL Examples
Examples of embedded OpenSQL code provided in this guide use the following conventions:
Convention
Usage
Margins
None are used.
; (semicolon)
Represents the statement terminator.
Labels
Appear on their own line and are followed by a colon (:). Control passes to the statement following the label.
Host language comments
Indicated by the OpenSQL comment indicator; for example:
/* This is a comment. */
' ' (single quotes)
Surround character strings.
pseudocode
Represents host language statements in embedded OpenSQL. For example:
exec sql begin declaration;
variable declarations
exec sql end declaration;
To determine the correct syntax for your programming language, see the Embedded SQL Companion Guide.
Last modified date: 11/09/2022