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
PreparedStatement - Database Prepared Statement Module
The Prepared Statement Module
A PreparedStatement Module represents an arbitrary SQL statement that contains parameters. These parameters can be replaced with values at execution time. This allows the same statement to be re-used. Depending on the underlying implementation of PreparedStatements, it may be more efficient to repeatedly use a PreparedStatement than to pass strings into a Statement module.
PreparedStatement modules are created using the CreatePreparedStatement command. This command takes a parameterized string of SQL to prepare. A call to Execute accepts values, which are inserted into the string to form an SQL statement.
The string passed into CreatePreparedStatement must be a standard SQL string parameterized with "?" (with "?" in place of values). These "?" will be replaced with the values given to Execute.
Except for the differences in creation and execution, PreparedStatement modules are identical to Statement modules. The exported members NextResult, SetOptions, GetOptions, and Close in PreparedStatement and Statement modules behave identically.
For information on using the Database package, see the usage page.
A PreparedStatement Module's Exported Commands
Close
Execute
GetOptions
NextResult
SetOptions
See Also
Database, Database[Connection][CreatePreparedStatement], Database[Statement], Database[usage]
Download Help Document