home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!oracle!unrepliable!bounce
- Newsgroups: comp.databases.oracle
- From: rhari@us.oracle.com
- Subject: Re: ? How do I declare a structure into which to fetch records?
- Message-ID: <1992Dec31.090629.1@us.oracle.com>
- Lines: 25
- Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
- Nntp-Posting-Host: kervms.us.oracle.com
- Organization: Oracle Corporation, USA
- References: <1992Dec30.054617.3077@kodak.kodak.com>
- Distribution: na
- Date: Thu, 31 Dec 1992 17:06:29 GMT
- X-Disclaimer: This message was written by an unauthenticated user
- at Oracle Corporation. The opinions expressed are those
- of the user and not necessarily those of Oracle.
-
- In article <1992Dec30.054617.3077@kodak.kodak.com>, deal@tempus.Kodak.Com (Stephen M. Deal) writes:
- >
- > I don't have my manuals with me (I'm at home) and I am trying to get
- > some embedded SQL C code (a.k.a. Pro*C) to precompile. I am not sure
- > that the manuals would answer this one anyway so I have turned to the
- > net for help.
- >
- > I have declared a structure into which a record should be retrieved:
- >
- > EXEC SQL BEGIN DECLARE SECTION;
- > struct emprec_ {
- > char name[35];
- > char dept_name[41];
- > char phone[16];
- > } query_results; /* Results of query placed here */
- > EXEC SQL END DECLARE SECTION;
- >
-
- Pro*C 1.3, 1.4 and 1.5 do not support structures as host language variables.
- Pro*C 2.0 (to be release for ORACELE7) supports structures, pointers to
- structs, etc etc and also the long standing preprocessing feature.
-
-
- Radhakrishna Hari
- rhari@us.oracle.com
-