home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / informix / 2915 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.7 KB  |  46 lines

  1. Newsgroups: comp.databases.informix
  2. Path: sparky!uunet!utcsri!torn!nott!bnrgate!bcars267!zoonews!NewsWatcher!user
  3. From: riskit@x400gate.bnr.ca (Reg Foulkes)
  4. Subject: Re: Updating within a scrolling cursor
  5. Message-ID: <riskit-110193091454@47.201.0.36>
  6. Followup-To: comp.databases.informix
  7. Sender: news@zoonews.bnr.ca (Patrick Wall)
  8. Nntp-Posting-Host: bftzm17
  9. Organization: Bell-Northern Research
  10. References: <1ik9fsINNhbe@emory.mathcs.emory.edu>
  11. Date: Mon, 11 Jan 1993 14:14:52 GMT
  12. Lines: 32
  13.  
  14. In article <1ik9fsINNhbe@emory.mathcs.emory.edu>, dave.snyder@snide.com
  15. (Dave Snyder) wrote:
  16. > Quoting Reg Foulkes...
  17. > } 
  18. > } I would like to access the temporary file created by the a scrolling 
  19. > } cursor. Anyone know how to do this (i.e. what is the mystery table name)? 
  20. > }  
  21. > }  Here is what I would like to do
  22. > } 
  23. > }   Declare scrolling cursor sel_stmt 
  24. > }   Open sel_stmt
  25. > }   RUN "insert into mystery_table VAULES (....) | isql database - -"
  26. > }                    ^^^^^^^^^^^^^
  27. > }   FETCH next sel_stmt
  28. > } 
  29. > Won't happen.  First of all, I don't think you can access a cursor's tmp
  30. > table.  Second, even if you were using a real tmp table, when you execute
  31. > the RUN command to do the INSERT, a new database process is started.  The
  32. > tmp table from your first database process is not available to any other
  33. > database processes.
  34.  
  35.  Sorry but you are mistaken. Currently, I can create my own tmp table and 
  36. it works fine. I just wanted to bypass that step and go directly to the 
  37. temp table created by the open and do an insert before a fetch. This 
  38. saves me from creating the temp table. That I use for the fetch.
  39. Unfortunately,
  40. informix hides its' system temp tables so I am unable to use them. Why?
  41.  
  42. riskit@bnr.ca
  43. phone (613) 763-4131
  44. Ottawa, Ontario Canada.
  45.