Re: sql from within c program
From: Chuck Dillon (cdillon_at_nimblegen.com)
Date: 08/28/03
- Next message: Chuck Dillon: "Re: unix cursor programming"
- Previous message: Barry Margolin: "Re: Directories are not files"
- In reply to: n: "sql from within c program"
- Next in thread: n: "Re: sql from within c program"
- Reply: n: "Re: sql from within c program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 28 Aug 2003 13:28:45 -0500
n wrote:
> Hello again:
>
>
>
> Is there a way to embed sqlplus statements within a c program.
>
> <snip>
>
> is there a certain header I need to make c recognize sqlplus cmd's like a
> sql.h
>
>
I'm assuming we're talking about Oracle given the sqlplus reference.
Oracle has a API called Pro*C (they also have a version for FORTRAN and
another for Java) which is a precompiler to C that expands embedded SQL
into C code. I believe there are similar generic technologies but I
don't know of any off-hand.
There are a number of other APIs that can be used to do SQL and RDB
interfacing from C code... ODBC is the vendor neutral API. Oracle
also offers OCI and OO4O (on Winders). Other RDB vendors have their
own flavors I'm sure.
If you are talking about Oracle look at:
http://otn.oracle.com/pls/tahiti/tahiti.show_toc?partno=a76942&remark=drilldown&word=precompiler
or otn.oracle.com in general. BTW, Oracle provides these client side
development tools at no charge. You just need license to run the clients.
-- ced
-- Chuck Dillon Senior Software Engineer NimbleGen Systems Inc.
- Next message: Chuck Dillon: "Re: unix cursor programming"
- Previous message: Barry Margolin: "Re: Directories are not files"
- In reply to: n: "sql from within c program"
- Next in thread: n: "Re: sql from within c program"
- Reply: n: "Re: sql from within c program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|