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

  1. Path: sparky!uunet!usc!cs.utexas.edu!swrinde!emory!emory!not-for-mail
  2. From: dave.snyder@snide.com (Dave Snyder)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Updating within a scrolling cursor
  5. Date: 8 Jan 1993 11:18:04 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 27
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1ik9fsINNhbe@emory.mathcs.emory.edu>
  11. Reply-To: dave.snyder@snide.com (Dave Snyder)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1762>
  14.  
  15. Quoting Reg Foulkes...
  16. } I would like to access the temporary file created by the a scrolling 
  17. } cursor. Anyone know how to do this (i.e. what is the mystery table name)? 
  18. }  
  19. }  Here is what I would like to do
  20. }   Declare scrolling cursor sel_stmt 
  21. }   Open sel_stmt
  22. }   RUN "insert into mystery_table VAULES (....) | isql database - -"
  23. }                    ^^^^^^^^^^^^^
  24. }   FETCH next sel_stmt
  25. Won't happen.  First of all, I don't think you can access a cursor's tmp
  26. table.  Second, even if you were using a real tmp table, when you execute
  27. the RUN command to do the INSERT, a new database process is started.  The
  28. tmp table from your first database process is not available to any other
  29. database processes.
  30.  
  31. Can someone at Informix tell me if I'm way out in left field, or am I
  32. pretty much on the money.
  33.  
  34. DAS
  35. -- 
  36. David Snyder @ Snide Computer Services - Folcroft, PA          Current Release
  37.                                                                is db4glgen-3.9
  38. UUCP:  ..!uunet!das13!dave   INTERNET:  dave.snyder@snide.com
  39.