home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!network.ucsd.edu!dog.ee.lbl.gov!overload.lbl.gov!phd.lbl.gov!prem
- From: prem@phd.lbl.gov (Shirdi R. Prem)
- Subject: Re: SQL and C++
- Message-ID: <1992Aug12.191218.3757@overload.lbl.gov>
- Keywords: Oracle Call Interfaces (OCI)
- Sender: usenet@overload.lbl.gov
- Nntp-Posting-Host: phd.lbl.gov
- Reply-To: prem@phd.lbl.gov (Shirdi R. Prem)
- Organization: Lawrence Berkeley Laboratory
- References: <1992Aug12.090938.22049@nestroy.wu-wien.ac.at>
- Date: Wed, 12 Aug 92 19:12:18 GMT
- Lines: 36
-
-
- Hi there,
-
- Having done some work as a consultant at IBM until last
- week, I may be able to help out a little here.
-
- Oracle provides something called Oracle Call Interfaces (OCI),
- which allow you to set up your program variables and bind
- them to placeholders in the SQL command.
-
- What we did was write a class in C++, which opened a login
- session (cursor) to Oracle. Then, we would begin the
- laborious process of setting up the arrays for input variables,
- output vars, indicators and return codes etc. Finally, once
- everything was ready, we would call the Oracle functions
- with these vars.
-
- It is not much fun to do, but then, it does the job. Since
- this was done in IBM, I am not sure if I can get very generous
- about the specifics without risking some "proprietary code" b.s.
-
- Another reason is that I am currently "at lunch" and I value
- the half-hour break highly. So, I will keep this short.
-
- If you have any questions, contact me via e-mail and we will
- take it from there.
-
- Good luck,
-
- Prem!
- ================================================================================
- ==== The above is not LBL's opinion. LBL and IBM are trademarks of ====
- ==== someone else's. Hey, I'm just trying to help! ====
- ================================================================================
- ==== prem@csr.lbl.gov ==== Temporary phone number : 510-745-7220 ====
- ================================================================================
-