almost 8 years ago
what is the problem here?please help me
package help; import java.util.Date; import java.sql.*; import java.util.logging.Level; import java.util.logging.Logger; public class Help { public static void main(String[] args) throws SQLException { Date date=new Date(); String w=String.valueOf(date); System.out.println(w); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:date","user","123"); Statement s=con.createStatement(); s.executeUpdate("INSERT INTO date(Date) VALUE ('"+w+"')"); } catch (ClassNotFoundException ex) { Logger.getLogger(Help.class.getName()).log(Level.SEVERE, null, ex); } }}
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Answer(s)