Testing embedded SQL in C

From: "HT NB" <hbnt(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Testing embedded SQL in C
Date: 2007-02-12 20:16:54
Message-ID: BAY107-F1423100F0E49C63EE76CD0DF910@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<html><div style='background-color:'><P>Hi,</P>
<P>How are you doing?</P>
<P>First, I am testing if this email address is valid. It is the first time that I am using this account. I have a question about how to start write embedded SQL in C programming code. What are the basic requirements in the .pgc file to have the embedded SQL running.</P>
<P>This is my coding which is aimed at testing if embedded SQL in C programming code is possible for my operating system Debian GNU/Linux.</P>
<P>#include &lt;stdio.h&gt;</P>
<P><BR>int main ( )<BR>{</P>
<P>EXEC SQL CONNECT TO <A href="mailto:database(at)sql(dot){ip address}.com">database(at)sql(dot){ip address}.com</A> :80;</P>
<P>EXEC SQL INSERT INTO database (tab_number) VALUES (4);<BR>EXEC SQL SELECT * FROM database;</P>
<P>return 1;</P>
<P>}</P>
<P>&nbsp;</P>
<P>Regards,</P>
<P>Huan</P>
<P>Huan Bui</P>
<P>347-602-7029</P>
<P><A href="mailto:hbnt(at)hotmail(dot)com">hbnt(at)hotmail(dot)com</A></P>
<P><BR><BR><BR>&nbsp;</P>
<DIV>
<P>&nbsp;</P></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMBENUS/2755??PS=47575" target="_top">Check out all that glitters with the MSN Entertainment Guide to the Academy Awards </a> </html>

Attachment Content-Type Size
unknown_filename text/html 1.1 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rajarshi Guha 2007-02-12 20:23:40 suggestions on improving a query
Previous Message Melvin Davidson 2007-02-12 20:03:21 Function to return list of all prime numbers in range