home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / oracle / 2657 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!nmr1!fogelinc
  3. From: fogelinc@nmr1.Cyanamid.COM (Carl Fogelin)
  4. Subject: Re: ? How do I declare a structure... 
  5. Message-ID: <1992Dec30.183813.29783@tigger.jvnc.net>
  6. Sender: news@tigger.jvnc.net (Zee News Genie)
  7. Nntp-Posting-Host: nmr1.pt.cyanamid.com
  8. Reply-To: fogelinc@nmr1.Cyanamid.COM
  9. Organization: American Cyanamid Company
  10. References: <1992Dec30.054617.3077@kodak.kodak.com>
  11. Date: Wed, 30 Dec 1992 18:38:13 GMT
  12. Lines: 28
  13.  
  14. In article 3077@kodak.kodak.com, deal@tempus.Kodak.Com (Stephen M. Deal) writes:
  15. >
  16. >I don't have my manuals with me (I'm at home) and I am trying to get
  17. >some embedded SQL C code (a.k.a. Pro*C) to precompile. I am not sure
  18. >that the manuals would answer this one anyway so I have turned to the
  19. >net for help.
  20. >
  21. >I have declared a structure into which a record should be retrieved:
  22.  
  23. I hate to tell you this Steve, but PRO*C does not support the use of structures.
  24. It states on page 1-6 of the PRO*C Supplement (V1.3)
  25.  
  26.    You cannot declare a host variable of type struct.  Nor can you refer
  27.    to any of the following:
  28.  
  29.        - names declared in typedef statements
  30.        - symbolic constants named by the #define directive
  31.        - previously declared structs
  32.  
  33. I know it stinks, especially since VARCHARs are structs, but that's the way
  34. it is.   :-(
  35.  
  36. Carl
  37.  
  38. ---------------------------------------------------------------------------
  39.  Carl Fogelin (fogelinc@cyanamid.com)     "All opinions are strictly mine" 
  40.    "Sushi!   That's what my ex-wife called me.  Cold fish." -- Blade Runner
  41.  
  42.