Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ステートメントPreparedStatementWrapperを含むオブジェクトを作成しました。INSERT今、私は自分のオブジェクトを印刷したいと思います。私は自分のINSERT発言をテストして、それが正しいことを確認したい. どうやってやるの?
PreparedStatementWrapper
INSERT
実行する前にSystem.out.println()andメソッドを使用してください。toString()
System.out.println()
toString()
PreparedStatement ps = con.prepareStatement(QUERY); ps.setString(1, "Test"); System.out.println(ps.toString());
MYSQL編集:ドライバーを使用している場合にのみ機能します。
MYSQL