Routing the action to other methods: the doAction( ) method  Executing an update statement: the updater( ) method

Chapter 4: Data Access Using JDBC

Executing imperative SQL operations: the doSQL( ) method

The doSQL( ) method performs SQL actions that require no input or output parameters such as create table, create procedure, drop table, and drop procedure.

doSQL( ) has two parameters: the Connection object and the SQL statement it is to perform. doSQL( ) creates a JDBC Statement object and uses it to execute the specified SQL statement.





Copyright © 2005. Sybase Inc. All rights reserved. Executing an update statement: the updater( ) method

View this book as PDF