#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    6
    Rep Power
    0
    Connection con;
    Statement stmt;
    con = DriverManager.getConnection(url, username, password);
    stmt = con.createStatement();
    stmt.executeUpdate("INSERT INTO COFFEES " +
    "VALUES ('Colombian', 101, 7.99, 0, new java.sql.Date(System.CurrentTimeMillis()))");

    ------------------
    Liu Shuquan
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    2
    Rep Power
    0
    Can you help me...? right now i do the java programming ..my problem is how i do want to connect to mysql database (local..in same machine) ? Does mysql support ODBC or must i using the other jdbc drivers?

Similar Threads

  1. Time wont insert into the database, HELP!
    By SE7EN in forum PHP Development
    Replies: 8
    Last Post: January 23rd, 2004, 06:35 PM
  2. insert today's date into database
    By hensods in forum HTML Programming
    Replies: 1
    Last Post: November 14th, 2003, 06:12 AM
  3. Replies: 1
    Last Post: July 25th, 2003, 03:34 PM
  4. Replies: 2
    Last Post: June 3rd, 2003, 09:16 AM
  5. code to insert page view into database
    By myqhenry in forum PHP Development
    Replies: 3
    Last Post: March 17th, 2002, 11:02 PM

IMN logo majestic logo threadwatch logo seochat tools logo