SQL statements come in two releases:
SQL statements are entered from a terminal and query results display on the terminal screen.
SQL statements can be included in programming languages such as C or Fortran.
Interactive SQL statements are entered through the Terminal Monitor.
The line-based Terminal Monitor accepts SQL statements in a line-oriented style. The line-based Terminal Monitor is invoked by typing sql at the operating system prompt.
For a complete discussion of the line-based Terminal Monitor, see the appendix "Terminal Monitors."
The Help SQL statement displays information about SQL statements and about tables, views, and other database objects. A complete list of help options is provided in the chapter "Using SQL Statements."
The forms-based Terminal Monitor accepts SQL statements in a screen-oriented style. The forms based Terminal Monitor is invoked by typing isql at the operating system prompt.
Embedded SQL statements can be embedded in a procedural (3GL) programming language. The procedural language is referred to as the host language.
Embedded SQL is supported in the following host languages:
Windows:
UNIX:
VMS:
Embedded SQL statements can be mixed with the full range of host language statements and provide your applications with full access to Ingres databases. The statements available in embedded SQL include those available in interactive SQL; embedded SQL, however, differs from interactive SQL in the following ways:
The dynamic programming feature of embedded SQL allows you to specify tables, columns, and queries at runtime. Dynamic programming allows generic applications to be written that can be used with any table. Details about dynamic programming, can be found in Dynamic Programming in the chapter "Embedded SQL."