All pastes #392266 Raw Edit

Mine

public text v1 · immutable
·published 2007-03-12 19:47 UTC
rendered paste body
            con = L2DatabaseFactory.getInstance().getConnection();
            PreparedStatement statement = con.prepareStatement("SELECT quote FROM quotes ORDER BY RAND() LIMIT 1");
            ResultSet rset = statement.executeQuery();
            quote = rset.getString("quote");