Copyright © 2001 Qusay H. Mahmoud
Create a statement object
lOnce a connection is established, it can be used to send SQL statements to the database
lA statement object is created as follows:
lStatement stmt = con.createStatement();
lNow, an SQL statement can be sent to the database
lResultSet ts = stmt.executeQuery(“Select * from table”);
lThree different method: executeQuery(), executeUpdate(), and execute()