Moved to JDBC and Databases

In the same SQL call, don't think you can unless you have stored procedures and/or triggers. In the same java method, just create a statement, make the SQL calls, and...