Testing embedded SQL in C - Mailing list pgsql-general

From HT NB
Subject Testing embedded SQL in C
Date
Msg-id BAY107-F1423100F0E49C63EE76CD0DF910@phx.gbl
Whole thread Raw
Responses Re: Testing embedded SQL in C
Re: Testing embedded SQL in C
List pgsql-general

Hi,

How are you doing?

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.

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.

#include <stdio.h>


int main ( )
{

EXEC SQL CONNECT TO database@sql.{ip address}.com :80;

EXEC SQL INSERT INTO database (tab_number) VALUES (4);
EXEC SQL SELECT * FROM database;

return 1;

}

 

Regards,

Huan

Huan Bui

347-602-7029

hbnt@hotmail.com




 

 



Check out all that glitters with the MSN Entertainment Guide to the Academy Awards�

pgsql-general by date:

Previous
From: "Melvin Davidson"
Date:
Subject: Function to return list of all prime numbers in range
Next
From: "Anton Melser"
Date:
Subject: Re: getting postgres to emulate mysql/sqlserver bit datatype