From: | Scherf Andreas <scherfa(at)fh-trier(dot)de> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Creating Tables |
Date: | 1999-01-05 10:34:06 |
Message-ID: | 3691EA9E.865C539E@fh-trier.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello, i have written the following function to create tables in my
program but Postgres returned that the SQL statement would be ignored.
I have a database connection with a user that has all rights.
Now my question how can i create tables and drop them in my C Code ??
Thanks Andreas
________________________
gint create_database_tables ()
{
res=execSQL("drop table vereine");
res=execSQL("create table vereine (
number int2,
v_name text);");
res=execSQL("drop table runner");
res=execSQL("create table runner (
number int2,
name text,
vorname text,
geb_jahr int2,
sex int2,
lauf_nr int2,
verein int2,
aktiv int2
);");
res = PQexec (conn, "END");
PQclear(res);
return 0;
}
--
Scherf Andreas
mail : scherfa(at)fh-trier(dot)de
From | Date | Subject | |
---|---|---|---|
Next Message | Tim Williams | 1999-01-05 11:06:18 | Re: [GENERAL] select using date |
Previous Message | Holger Klawitter | 1999-01-05 10:17:08 | String Concatenation does not work. |