Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Creative commons Attribution-NonCommercial license. http://creativecommons.org/licenses/by-nc/2.5/au/deed.en_GB NO WARRANTY IS GIVEN OR IMPLIED, USE AT YOUR OWN RISK.
 
 package base.jee.api.sql.util;
 
public class HasPersonRecord {
	public static int hasPersonRecord(Connection cthrows SQLException {
		int count = 0;
		PreparedStatement s = null;
				"select count(*) "+
				"from person");
		r.next();
		count = r.getInt(1);
		r.close();
		s.close();
		return count;
	}
New to GrepCode? Check out our FAQ X