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
Statement:-Execute - execute an arbitrary SQL string
Calling Sequence
statement:-Execute( sql )
Parameters
statement
-
Statement module
sql
string; one or more SQL statements to execute
Description
Execute passes a string of SQL statements to the database to be executed. The string can contain multiple statements and generate multiple return values.
Execute returns the return value of the first statement. The return values of subsequent statements are accessible through the NextResult command.
If a statement is an update, then the return value is an integer representing the update count. If a statement is a query, then the return value is a Result module representing the table of values.
Not all Java Database Connectivity [JDBC] Drivers can handle multiple SQL statements in a single string. In this case, the behavior of Execute with multiple statements is undefined.
If only a single SQL statement is being executed, using ExecuteUpdate or ExecuteQuery may be more convenient. However, if a large number of such statements are executed, Execute is more efficient.
Examples
Execute some statements.
Check the value.
Get the next result.
Get the value.
Now the last result.
See Also
Database, Database[Connection][ExecuteQuery], Database[Connection][ExecuteUpdate], Database[Result], Database[Statement], Database[Statement][NextResult], Database[usage]
Download Help Document