I see following example in Clojure.java.jdbc
(sql/db-do-prepared db "INSERT INTO fruit2 ( name, appearance, cost, grade ) VALUES ( ?, ?, ?, ? )" ["test" "test" 1 1.0]) But how do i convert following java code into clojure. I am new to clojure and not sure how to i pass multiple vector final int numRows = 10000; PreparedStatement pstmt = conn .prepareStatement("insert into new_order values (?, ?, ?)"); for (int id = 1; id <= numRows; id++) { pstmt.setInt(1, id % 98); pstmt.setInt(2, id % 98); pstmt.setInt(3, id); int count; if ((count = pstmt.executeUpdate()) != 1) { System.err.println("unexpected update count for a single insert " + count); System.exit(2); } if ((id % 500) == 0) { System.out.println("Completed " + id + " inserts ..."); } } -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.