Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004
    Posts
    51

    Question Unanswered: Return Records from a Cursor

    Hey! I need to open a table and modify the records without modifying the original table values and then return the modified version to the client app.

    In DB2 there are a number of ways to do this, in SQL there are at least a few. All I need in pervasive is one.

    So how about opening a cursor for Update, updating the records and then... and then...umm...

    So first, How do you return records that exist within a cursor to the client app (let's presume we've got a valid RETURNS phrase).

    Then, how do you be sure that the Records inside the Cursor aren't the underlying table records in the database when you modify them?

    Thanks if you know and tell.

    Kimball

  2. #2
    Join Date
    Feb 2004
    Posts
    78
    What exactly are you trying to do?

    Are you writing a service that reads from the DB on behalf of the client? Why can't you just change the data in your prog before passing back to the client?

    I'm nor sure what you need or why you need it.

    Are you talking about inside a stored procedure in Pervasive? If so i would use a working table to insert records into, update, and then select. I think that's the only way you can do this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •