throws SQLException,StorageObjectException
{
long startTime = System.currentTimeMillis();
- String sql = "SELECT count(*) FROM "+ theTable + " where " + where;
+ String sql = "SELECT Count(*) FROM "+ theTable;
+ if (where != null && !(where.length() == 0))
+ sql = sql + " where " + where;
Connection con = null;
Statement stmt = null;
int result = 0;