Re: c/sql

From: jsedwards(at)acm(dot)org (Jeff Edwards)
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: c/sql
Date: 2002-11-14 22:40:23
Message-ID: 3a1ba690.0211141440.415c1a2c@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

ozsevim(at)likya(dot)iyte(dot)edu(dot)tr wrote in message news:<200211072044(dot)WAA08918(at)likya(dot)iyte(dot)edu(dot)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

In response to

  • c/sql at 102-11-07 22:44:25 from ozsevim

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthew T. O'Connor 2002-11-14 23:05:49 Re: RC1?
Previous Message Stephan Szabo 2002-11-14 22:36:34 Re: create or replace view