36.14. Embedded SQL Commands

|36.14. Embedded SQL Commands|               |                                    |                  |                                          |
|:--------------------------:|---------------|------------------------------------|------------------|------------------------------------------|
|   [Prev](ecpg-cpp.html)    |[Up](ecpg.html)|Chapter 36. ECPG — Embedded SQL in C|[Home](index.html)| [Next](ecpg-sql-allocate-descriptor.html)|

---

## 36.14. Embedded SQL Commands

[ALLOCATE DESCRIPTOR](ecpg-sql-allocate-descriptor.html) — allocate an SQL descriptor area[CONNECT](ecpg-sql-connect.html) — establish a database connection[DEALLOCATE DESCRIPTOR](ecpg-sql-deallocate-descriptor.html) — deallocate an SQL descriptor area[DECLARE](ecpg-sql-declare.html) — define a cursor[DECLARE STATEMENT](ecpg-sql-declare-statement.html) — declare SQL statement identifier[DESCRIBE](ecpg-sql-describe.html) — obtain information about a prepared statement or result set[DISCONNECT](ecpg-sql-disconnect.html) — terminate a database connection[EXECUTE IMMEDIATE](ecpg-sql-execute-immediate.html) — dynamically prepare and execute a statement[GET DESCRIPTOR](ecpg-sql-get-descriptor.html) — get information from an SQL descriptor area[OPEN](ecpg-sql-open.html) — open a dynamic cursor[PREPARE](ecpg-sql-prepare.html) — prepare a statement for execution[SET AUTOCOMMIT](ecpg-sql-set-autocommit.html) — set the autocommit behavior of the current session[SET CONNECTION](ecpg-sql-set-connection.html) — select a database connection[SET DESCRIPTOR](ecpg-sql-set-descriptor.html) — set information in an SQL descriptor area[TYPE](ecpg-sql-type.html) — define a new data type[VAR](ecpg-sql-var.html) — define a variable[WHENEVER](ecpg-sql-whenever.html) — specify the action to be taken when an SQL statement causes a specific class condition to be raised

 This section describes all SQL commands that are specific to embedded SQL. Also refer to the SQL commands listed in [SQL Commands](sql-commands.html), which can also be used in embedded SQL, unless stated otherwise.

---

| [Prev](ecpg-cpp.html) | [Up](ecpg.html)  | [Next](ecpg-sql-allocate-descriptor.html)|
|:----------------------|:----------------:|-----------------------------------------:|
|36.13. C++ Applications|[Home](index.html)|            ALLOCATE DESCRIPTOR           |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>