Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.