I switched to prepared statement and it is working fine now
Type: Posts; User: A4Andy
I switched to prepared statement and it is working fine now
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...
here is my action performed
public void actionPerformed (ActionEvent event)
{
//String dbtime;
Connection con = null;
String url =...
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...