所以來列出這三個API:
這三個API必需要在Try-Catch內才能執行
- import java.sql.*;
- public class XXX {
- public static void main(String[] args)
- {
- Connection connection;
- try
- {
- connection.setAutoCommit( false );
- connection.commit();
- connection.rollback();
- }
- catch( Exception e )
- {
- e.printStackTrace();
- }
- }
- }
沒有留言:
張貼留言