home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / informix / 2925 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.4 KB

  1. Path: sparky!uunet!gossip.pyramid.com!pyramid!infmx!davek
  2. From: davek@informix.com (David Kosenko)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Updating within a scrolling cursor
  5. Message-ID: <1993Jan11.200006.8244@informix.com>
  6. Date: 11 Jan 93 20:00:06 GMT
  7. References: <1ik9fsINNhbe@emory.mathcs.emory.edu> <riskit-110193091454@47.201.0.36>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 41
  11.  
  12. Reg Foulkes writes:
  13. >In article <1ik9fsINNhbe@emory.mathcs.emory.edu>, dave.snyder@snide.com
  14. >(Dave Snyder) wrote:
  15. >> Won't happen.  First of all, I don't think you can access a cursor's tmp
  16. >> table.  Second, even if you were using a real tmp table, when you execute
  17. >> the RUN command to do the INSERT, a new database process is started.  The
  18. >> tmp table from your first database process is not available to any other
  19. >> database processes.
  20. >
  21. > Sorry but you are mistaken. Currently, I can create my own tmp table and 
  22. >it works fine. I just wanted to bypass that step and go directly to the 
  23. >temp table created by the open and do an insert before a fetch. This 
  24.  
  25. I don't believe this will work in every release.  I just tried it using
  26. 5.0 OnLine, and the temp table I created was not available outside the
  27. session of the process that created it.  Quoting the 5.0 SQL Reference
  28. Guide:
  29.     [pg 7-86] "Once a temporary table is created, you can build
  30.     indexes on the table.  However, you are the only user who can 
  31.     see the temporary table."
  32.  
  33. This does not explicitly define "user" but empirically I have found this to
  34. equate to "sqlturbo" (or sqlexec) and not userid.
  35.  
  36. >saves me from creating the temp table. That I use for the fetch.
  37. >Unfortunately,
  38. >informix hides its' system temp tables so I am unable to use them. Why?
  39.  
  40. Because we reserve the right to change how we implement something like
  41. scroll cursors.  If access were given to these (currently) temp tables,
  42. we would be obligated to always implement them in that fashion.  A real
  43. example of this is ORDER BYs: they were once implemented using temp
  44. tables with an index on them (X.10.03), but are now done using a
  45. quicksort variant with temp files (but not temp tables).
  46.  
  47. Dave
  48. -- 
  49. Disclaimer: These opinions are not those of Informix Software, Inc.
  50. **************************************************************************
  51. "I look back with some satisfaction on what an idiot I was when I was 25,
  52.  but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
  53.