Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
Result - Database Result Module
The Result Module
The Result module represents a table that results from an SQL query.
The Result module maintains a cursor in the table that indicates a single row. Operations that manipulate data always work on this row. The following commands move the cursor: Next, Previous, First, Last, and GotoRow.
A new Result object has the cursor on a row previous to the first row with data (the "before first" row). Therefore, it is necessary to call Next before accessing data the first time. This is convenient for writing while loops that loop over the data in the Result.
Some JDBC drivers do not support scrollable result sets. This means when inspecting the rows of a Result only Next will work. Once the last row has been read, the Result module should be considered closed and no longer used. For more information, see the compatibility help page.
A Result object can also be used to update a database (assuming the JDBC driver and database support this, see compatibility). A row can be deleted using the DeleteRow command. Data in a row can be updated with UpdateData and UpdateRow. A new row can be inserted by calling InsertRow.
A Result can be converted into a Maple data type by calling ToMaple. This converts a Result into a table or an Array. It can also display the Result data in a Maplet application.
For more information on using Database, see usage.
A Result Module's Exported Commands
Close
DeleteRow
First
GetColumnCount
GetData
GetName
GetOptions
GetRowCount
GetRowIndex
GetType
GotoRow
InsertRow
Last
Next
Previous
SetOptions
ToMaple
UpdateData
UpdateRow
See Also
Database, Database[Connection][ExecuteQuery], Database[Statement][Execute], Database[Statement][NextResult], Database[usage]
Download Help Document