|< < 30 > >|

Postgres C API

Create table A

// Create table A { res = PQexec(cnxn, "create table A(x int, s varchar)"); if (PQresultStatus(res) != PGRES_COMMAND_OK) { PQclear(res); oops(cnxn, "begin failed"); } // res has to be cleared after receiving a value PQclear(res); printf("Created table A\n"); } }

|< < 30 > >|