-<Chapter Id="libpq">
-<Title><FileName>libpq</FileName></Title>
+<Chapter Id="libpq-chapter">
+<Title id="libpq"><FileName>libpq</FileName></Title>
<Para>
exit_nicely(conn);
}
PQclear(res);
-
res = PQexec(conn, "FETCH ALL in mycursor");
if (PQresultStatus(res) != PGRES_TUPLES_OK)
{
printf("%-15s", PQgetvalue(res, i, j));
printf("\n");
}
-
PQclear(res);
/* close the cursor */
<ItemizedList Mark="bullet" Spacing="compact">
<ListItem>
<Para>
-running the <ProductName>Postgres</ProductName> terminal monitor programs (e.g.
- <Application>psql</Application>) which allows you to interactively
+running the <ProductName>Postgres</ProductName> terminal monitor programs
+ (e.g. <Application>psql</Application>) which allows you to interactively
enter, edit, and execute <Acronym>SQL</Acronym> commands.
</Para>
</ListItem>
library. This allows you to submit <Acronym>SQL</Acronym> commands
from <Acronym>C</Acronym> and get answers and status messages back to
your program. This interface is discussed further
- in <XRef LinkEnd="PROGRAMMERS-GUIDE">.
+ in <xref linkend="libpq" endterm="libpq">.
</Para>
</ListItem>
</ItemizedList>
-You might want to start up <Application>psql</Application>, to try out the examples in this manual.
+You might want to start up <Application>psql</Application>,
+to try out the examples in this manual.
It can be activated for the <Database>mydb</Database>
database by typing the command:
<ProgramListing>