Friday
Nov192004
MySQL Query Cache
Friday, November 19, 2004 at 10:03AM
Symlinking tables across database in MySQL is a really bad idea.
That is all.
That is all.
Friday, November 19, 2004 at 10:03AM
Wednesday, November 17, 2004 at 2:11PM
Connection conn = ...
PreparedStatement ps = conn.prepareStatement("SELECT name FROM customers WHERE customerid=?");
ps.setLong(1, someVar);
long and not a Long. If someVar is a Long you have to call longValue() on your Long since setLong()'s signature is (int, long). But what if someVar is null? NPE!
if(someVar != null) {
ps.setLong(1, someVar);
} else {
ps.setNull(2, Types.INTEGER);
}
ps.setObject(1, someVar, Types.INTEGER);
Tuesday, November 16, 2004 at 4:01PM
Monday, November 15, 2004 at 2:25PM
Monday, November 15, 2004 at 2:02PM