/** * @see #findFirst(String, Object...) * @param sql an SQL statement */ public static Record findFirst(String sql) { return dbPro.findFirst(sql); }
/** * Find first record. I recommend add "limit 1" in your sql. * * @param sql an SQL statement that may contain one or more '?' IN parameter placeholders * @param paras the parameters of sql * @return the Record object */ public static Record findFirst(String sql, Object... paras) { return dbPro.findFirst(sql, paras); }