SQL Instructions
PLBCMP GUI and PLBLinux Only
Structured Query Language is an interface that allows PL/B programs access to many other databases, both relational and non-relational. Three interfaces are provided.
Active Data Objects (ADO), MySQL, and Open DataBase Connectivity (ODBC) for Windows.
MySQL for Linux and Linux
The database verbs have been enhanced to allow multiple connections to different database engines at the same time. In addition, the user's application can have multiple active SQL statements that provide different result data sets using multiple DBSTATEMENT variables for a single connection of a DBFILE variable.
Before an ODBC database may be accessed from a PL/B program, you must first install the administrative programs. These programs provide the ability to add or delete database drivers and determine that databases are accessible via ODBC. These Windows programs are available from the database supplier and are not distributed by Sunbelt.
PL/B:Linux users of MySQL databases will not require any additional drivers. The PLB_SQL keyword defines the SQL supporting library used by the runtime. The library must be in the PLB_SYSTEM folder. The 'sunmysql.so' library is supplied by Sunbelt for MySQL.
The SQL instructions are not available when using the PLBCE runtime.
The following instructions support SQL:
|
Halt an executing query. | |
|
Clear any data place by a DBSEND. | |
|
Close a database statement. | |
|
Connect to a remote database. | |
|
Disconnect from a remote database. | |
|
Obtain error information from a remote database. | |
|
Execute a query on a remote database. | |
|
Return one row of a query result. | |
|
Return the previous row of a query result. | |
|
Declare working storage for a database. | |
|
Open a database statement. | |
|
Prepare an SQL statement. | |
|
Return the number of affected rows by a DELETE, INSERT, or UPDATE operation. | |
|
Send all or part of a query to a remote database. | |
|
Determine the state of query. | |
|
Declare working storage for a database statement. | |
|
Provide access to transaction support on a database connection. |
![]() |