Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • java problem

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 546
    Answer it


    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);
            try {
                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);


 0 Answer(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: