User's Guide
Part V. The SQL Anywhere Programming Interfaces
Chapter 34. The Embedded SQL Interface| EXEC SQL ALL Embedded SQL statements must be preceded with EXEC SQL and end with a semicolon. |
Embedded SQL commands are broken into two groups:
| Statement | Description |
|---|---|
| CALL | Invoke a database procedure |
| CHECKPOINT | Cause the database engine to write all modified information |
| COMMIT | Commit changes to the database |
| DELETE | Delete rows from a database table |
| INSERT | Insert rows into database tables |
| PREPARE TO COMMIT | First phase of two-phase commit |
| RELEASE SAVEPOINT | Release a savepoint |
| ROLLBACK | Undo changes to database |
| ROLLBACK TO SAVEPOINT | Undo changes to database |
| SAVEPOINT | Establish a savepoint within a transaction |
| SELECT | Retrieve information from the database |
| UPDATE | Update rows in the database. |
| Statement | Description |
|---|---|
| ALTER | Modify a database table definition |
| COMMENT ON | Fill in remarks column for tables and columns |
| CREATE | Create database objects |
| DROP | Remove objects from the database |
| GRANT | Create userids, grant privileges to users |
| REVOKE | Delete userids, revoke privileges from users |
| SET OPTION | Set database options |
| VALIDATE TABLE | Check validity of table contents and all indexes on table |
In addition to the standard SQL data manipulation and data definition commands, there are several SQL commands that are specific to Embedded SQL and can only be used in a C program. These Embedded SQL commands are also described in "Watcom-SQL Language Reference".