August 1999
Intermediate to advanced
1488 pages
72h 53m
English
connection.execute(statement)
The execute() method of the Connection object enables your application to execute a DDL (Data Definition Language) or DML (Data Manipulation Language) query, which does not return a Cursor, supported by your database. This includes statements such as CREATE, ALTER, and DROP.
Note
Be sure to use SQL that conforms to your database.
Listing 8.16 deletes all rows with a UID less than the number passed to the script.
<SERVER> // Assign the UID passed to the client object client.uid = request.uid; // Execute a DELETE based on the UID passed myConn.execute('DELETE FROM employees WHERE uid < ' + client.uid); ... |
Read now
Unlock full access