database.c
changeset 29 7abf6146898e
parent 27 81a574d60c15
child 77 49e0babccb23
equal deleted inserted replaced
28:54addf5893ef 29:7abf6146898e
    11 int main (int argc, char **argv)
    11 int main (int argc, char **argv)
    12 {
    12 {
    13     char *conninfo;
    13     char *conninfo;
    14 
    14 
    15     PGconn *conn;
    15     PGconn *conn;
    16 
       
    17     PGresult *res;
    16     PGresult *res;
    18 
    17 
    19     int nFields;
    18     int nFields;
    20 
       
    21     int i;
    19     int i;
    22 
       
    23     int j;
    20     int j;
    24 
    21 
    25     conninfo = "dbname=lightintron";
    22     conninfo = "dbname=lightintron";
    26 
    23 
    27     conn = PQconnectdb (conninfo);
    24     conn = PQconnectdb (conninfo);