"select * from " + getTable() + " where DateTime(\'" + start.ToString("yyyy-mm-dd hh:mm:ss") + "\') and PiName == " + PiName + "