On Thu, Nov 07, 2002 at 10:44:25PM +0000, ozsevim@likya.iyte.edu.tr wrote:
> I know Ansi C language and SQL.  I want to embed a sql statement into a c 
> source code. Would you please recommend me some web sites or tutorials 
> regarding this subject.
> Thank you for your concern,

You should have no problem finding some docs about "embedded SQL" using
google or a similar search engine. As for PostgreSQL check the docs
about ecpg. There are also some examples in the source tree.

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

Sun, 10 Nov 2002 18:51:17 +0100
Michael Meskes <meskes@postgresql.org>
Re: c/sql
ozsevim@likya.iyte.edu.tr wrote in message news:<200211072044.WAA08918@likya.iyte.edu.tr>...
> Hello,
> I know Ansi C language and SQL.  I want to embed a sql statement into a c 
> source code. Would you please recommend me some web sites or tutorials 
> regarding this subject.
> Thank you for your concern,
> Emrah
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

Hi,
You need to read about the possible interfaces for postgreSQL.
I've used the libpq++ for my C++ classes with great success.
So, #include <libpq++.h> and embed the sql with sprintf(x,sql)
then send x to the server with if(!ExecCommandOk(x)) printf("Error...");

Good luck,
Jeff

14 Nov 2002 14:40:23 -0800
jsedwards@acm.org (Jeff Edwards)
Re: c/sql