1752720 Members
5940 Online
108789 Solutions
New Discussion юеВ

SQL within a C-script ??

 
Paul Murray
Occasional Contributor

SQL within a C-script ??

Gurus,

I am trying to write a small C program which will perform sqlplus "select" and "insert" commands.

Does anyone know of a reference site (pref. with examples) on how to accomplish this as simply as possible ??

As you probably have ascertained -- I am totally new to C-programming, so no laughing please !! :-)


Cheers in advance,
PaulM.

PS -- OS = HPUXv11, N/L-Class Servers.
My Brain Hurts !!!!!
2 REPLIES 2
Dan Hetzel
Honored Contributor

Re: SQL within a C-script ??

Hi Paul,

Here is a nice URL to start with.
You'll find plenty of links to tutorials ans examples for embedded SQL.

http://cplus.about.com/compute/cplus/msub10.htm

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Rainer_1
Honored Contributor

Re: SQL within a C-script ??

if you have oracle db you can go to

$ORACLE_HOME/rdbms/demo

there are several demo C files.