When you call a stored procedure in a RDMS, you don't always get back a sequence of records in the same layout and structure as when you just do a simple SQL select style query.
An SQL query would return a series of records separated by newline characters. A stored procedure might return a mixed collection of records of different types.
A ResultSet object is created by asking the Stproc object for it when the stored procedure has been called and returned from the database.
The traversing mechanisms provided with a result set allow you to move forwards through the data but you cannot move backwards. You also can only read values from a result set as opposed to a cursor which allows you to update and write new values back.
See also: | ResultSet object |
Prev | Home | Next |
Stproc.prototype | Up | Stproc.returnValue() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |