home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / informix / 2321 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  1.6 KB

  1. Path: sparky!uunet!oracle!pyramid!infmx!davek
  2. From: davek@informix.com (David Kosenko)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Stored queries under INFORMIX 4.00 or INFORMIX 4.10
  5. Message-ID: <1992Nov5.171124.7567@informix.com>
  6. Date: 5 Nov 92 17:11:24 GMT
  7. References: <1992Nov4.162232.28445@walter.cray.com>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 25
  11.  
  12. In article <1992Nov4.162232.28445@walter.cray.com> n2976@cray.com writes:
  13. >Does anybody know if INFORMIX 4.00 or INFORMIX 4.10 supports stored queries?
  14. >
  15. >If not what about 5.00? What about any INFORMIX product?
  16. >
  17.  
  18. We do not support stored queries (I think what you really want here are
  19. stored query plans, no?)
  20.  
  21. What 5.0 brings, though, is stored procedures.  This allows you to put
  22. your sql into a stored procedure.  That query is optimized at procedure
  23. create time, and the query plan stored with the procedure.  That query
  24. plan will be used whenever that procedure is called (it would only be
  25. reoptimized if the underlying table's structure should change).  This
  26. gives you the same basic effect as a stored query plan.  It does require
  27. that you call the procedure rather than issue the sql statement directly,
  28. but procedures can be used just like a statement (e.g. you can declare
  29. cursors against them, they can return sets of rows, etc.).
  30.  
  31. Dave
  32. -- 
  33. Disclaimer: These opinions are not those of Informix Software, Inc.
  34. **************************************************************************
  35. "I look back with some satisfaction on what an idiot I was when I was 25,
  36.  but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
  37.