... 6:44 PM
442
CHAPTER 14
■ ACCESSING POSTGRESQL FROM C USING EMBEDDED SQL
EXEC SQL include sqlca;
EXEC SQL whenever sqlwarning sqlprint;
EXEC SQL whenever sqlerror do GiveUp();
void GiveUp()
{
fprintf(stderr, ... 2004; ISBN 1 -89 3115-51 -8) .
Adding PostgreSQL Support to PHP
Before you can begin developing PHP scripts that interface with a PostgreSQL database, you
will need to inc...
... conformance to SQL9 2: Entry SQL, Intermediate SQL, and Full
SQL. By far, the most common conformance level is Entry SQL.
■Note PostgreSQL is very close to SQL9 2: Entry SQL conformance, with only ... the SQL
used by Oracle, SQL Server, PostgreSQL, and other database systems.
MatthewStones_4 789 C01.fm Page 8 Tuesday, February 1, 2005 7:25 AM
iv
■CONTENTS AT A GLANCE
APPEND...
... for PostgreSQL
postgresql-pl PostgreSQL server support for Perl
postgresql-python PostgreSQL server support for Python
postgresql-tcl PostgreSQL server support for Tcl
postgresql-test PostgreSQL ... in a set of smaller files:
• postgresql -8. 0.0.base.tar.gz
• postgresql -8. 0.0.docs.tar.gz
• postgresql -8. 0.0.opt.tar.gz
• postgresql -8. 0.0.test.tar.gz
MatthewStones_4 789 C03.fm Page 49 Tue...
... of the PostgreSQL documentation.
■Tip The PostgreSQL documentation can be installed as a set of HTML pages that can be viewed locally
with any web browser. Select file://usr/local/pgsql/doc/html/index.html ... deprecated and have been removed from recent releases of PostgreSQL, including
8. 0. Use the ln and exp functions instead.
Arithmetic Operators
PostgreSQL provides a range of arithm...
... replaced with =#.
psql commands are of two different types:
• SQL commands: We can issue any SQL statement that PostgreSQL supports to psql, and
it will execute it.
• Internal commands: These are psql ... 5-17.
MatthewStones_4 789 C05.fm Page 136 Monday, February 14, 2005 12:00 PM
124
CHAPTER 5
■ POSTGRESQL COMMAND-LINE AND GRAPHICAL TOOLS
Figure 5-4. Creating a PostgreSQL data source...
... set
MatthewStones_4 789 .book Page 388 Wednesday, February 23, 2005 6:49 AM
MatthewStones_4 789 .book Page 4 18 Wednesday, February 23, 2005 6:49 AM
CHAPTER 13 ■ ACCESSING POSTGRESQL FROM C USING LIBPQ
391
all: ... table:
MatthewStones_4 789 C12.fm Page 383 Tuesday, March 8, 2005 2:21 PM
CHAPTER 13 ■ ACCESSING POSTGRESQL FROM C USING LIBPQ
397
DELETE and UPDATE may affect more than one row...
... shows the PostgreSQL data types for date and time.
Character Types
Table B-5 shows the PostgreSQL character data types.
Table B-4. PostgreSQL Types for Date and Time
SQL Name PostgreSQL
Alternative ... next row
Table 18- 7. Common NpgsqlDataReader Methods (Continued)
Method Meaning
MatthewStones_4 789 C 18. fm Page 5 28 Friday, March 4, 2005 6:47 PM
CHAPTER 18 ■ ACCESSING POSTGRESQL FRO...