Chapter 30. ECPG - Embedded SQL in C

Table of Contents
30.1. The Concept
30.2. Connecting to the Database Server
30.3. Closing a Connection
30.4. Running SQL Commands
30.5. Choosing a Connection
30.6. Using Host Variables
30.6.1. Overview
30.6.2. Declare Sections
30.6.3. SELECT INTO and FETCH INTO
30.6.4. Indicators
30.7. Dynamic SQL
30.8. Using SQL Descriptor Areas
30.9. Error Handling
30.9.1. Setting Callbacks
30.9.2. sqlca
30.9.3. SQLSTATE vs SQLCODE
30.10. Including Files
30.11. Processing Embedded SQL Programs
30.12. Library Functions
30.13. Internals

This chapter describes the embedded SQL package for PostgreSQL. It was written by Linus Tolke () and Michael Meskes (). Originally it was written to work with C. It also works with C++, but it does not recognize all C++ constructs yet.

This documentation is quite incomplete. But since this interface is standardized, additional information can be found in many resources about SQL.