- PQexecParams: Like PQexec, but for statements
with parameters.
- insert ... values($1, $2): The parameters are indicated
by $1, $2.
- const char* params[] = {"5", "five"};: The
parameters, in textual form. For parameters, and results, we can use
text or binary. Text is simpler to use. Binary may be marginally faster.
- PQcmdTuples(res): Getting the number of rows inserted.
- const char* params[] = {"-6", NULL};:
Inserting a second row. Indicate (SQL) NULL by a (C) NULL pointer.