home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / oracle / 2664 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.5 KB

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