From: Anna Langer <anna_langer@hotmail.com>
To: pgsql-general@postgreSQL.org
Subject: Problems with INSERT INTO?
Date: Mon, 24 May 1999 02:22:04 PDT
Message-ID: <19990524092204.92750.qmail@hotmail.com> (raw)
Hi!
We are not really sure if this question is right for this mailinglist.
We have some problem with INSERT INTO and we dont know how to solve it.We
are writing it in a C-program. We are trying to get an integer from a file
and put it into a database. And we are sure that we get a interger into our
program.
When we created the table in the database we set the attribut to int4.
We get the problem when we trying to move the interger to the database.
int a=500;
PQexec(conn, "INSERT INTO octets VALUES(a)");
But the program works when we do like this:
PQexec(conn, "INSERT INTO octets VALUES(500)");
It feels like we need to convert int a in some way, byt we dont know how. We
are beginners with Postgresql.
/Anna and Maria
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: anna_langer@hotmail.com, pgsql-general@postgreSQL.org
Subject: Re: Problems with INSERT INTO?
In-Reply-To: <19990524092204.92750.qmail@hotmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox