-14

I try and not happen with my database, can I fix it?

String remove = "INSERT INTO tampung2(tweet) SELECT DISTINCT tweet FROM tampung";
           PreparedStatement prStmt1 = conn.prepareStatement(remove);
           prStmt1.execute();
4
  • 1
    add some more detail. May 19, 2019 at 19:21
  • What is the error message? May 19, 2019 at 19:54
  • I try execute but not insert in tampung2
    – Joko Andi
    May 20, 2019 at 5:28
  • Maybe your table tampung is empty?
    – Sascha
    May 20, 2019 at 12:59

1 Answer 1

1

Check if there is any error messages thrown. Else I agree with Sascha, the table tampung will be empty.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.