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.
Showing results for 
Search instead for 
Did you mean: 

SQL within a C-script ??

Paul Murray
Occasional Contributor

SQL within a C-script ??


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,

PS -- OS = HPUXv11, N/L-Class Servers.
My Brain Hurts !!!!!
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.

Best regards,

Everybody knows at least one thing worth sharing --
Honored Contributor

Re: SQL within a C-script ??

if you have oracle db you can go to


there are several demo C files.