previous |
start |
next
Executing SQL Statements
- You can reuse a Statement object to execute new SQL
commands
- Each Statement object should only have one active
ResultSet
- If you need to look at multiple result sets at the same time,
create multiple Statement objects
- Close the current ResultSet before issuing a new query
on the same statement
result.close();
- When you are done with a Statement object, close
it
- That will also close the ResultSet
stat.close();
previous |
start |
next