Search:

Type: Posts; User: A4Andy

Search: Search took 0.18 seconds.

  1. Replies
    6
    Views
    1,926

    Re: java + mysql update

    I switched to prepared statement and it is working fine now
  2. Replies
    6
    Views
    1,926

    Re: java + mysql update

    I added sq.printStackTrace() in the catch sq

    here is my sq.printStackTrace()


    com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'first' in 'field list'
    at...
  3. Replies
    6
    Views
    1,926

    Re: java + mysql update

    here is my action performed

    public void actionPerformed (ActionEvent event)
    {
    //String dbtime;
    Connection con = null;
    String url =...
  4. Replies
    6
    Views
    1,926

    java + mysql update

    I am having trouble with my program regarding execute update statement

    this code is working


    val = st.executeUpdate("INSERT test VALUES("+3+","+"'Test1'"+","+"'Test2'"+");");


    but not this...
Results 1 to 4 of 4