1) catch(SQLException s){
System.out.println("Table all ready exists!");
}
Should be:
System.err.println("Error creating table or table already exists.")
2) con.close();
NPE possible here, should be:
if( con != null ) { con.close() };
3) This statement object is never closed:
Statement st = con.createStatement();
Example needs workDan Van Atta November 8, 2011 at 4:06 AM
1) catch(SQLException s){ System.out.println("Table all ready exists!"); } Should be: System.err.println("Error creating table or table already exists.") 2) con.close(); NPE possible here, should be: if( con != null ) { con.close() }; 3) This statement object is never closed: Statement st = con.createStatement();
Very niceJango Jane April 20, 2012 at 12:52 PM
Nice program...
thankyouGagan preet Singh September 23, 2012 at 11:26 PM
thankyou sir
database connectivity in core javaShivam Saxena September 27, 2012 at 1:13 PM
my project can't connect from table by access
java tabletanvi November 10, 2012 at 12:13 PM
i used the code of create table but can you please tell me the further procedure to run even i m not getting ...
jdbcraja September 17, 2012 at 11:37 AM
under standing is
Post your Comment