统计SQL数据库中满足一定条件的记录数,怎么统计啊?
sSQL="SELECT count(*) from tblDa.masterwhere dateD="+""+IntToStr(sDateD)+""+"";
Status = SQLexec(hSQL,sSQL);
IF Status = 0 THEN
WHILE SQLNext(hSQL) = 0 DO
numeber=numeber+1;
END
SQLEnd(hSQL);
ELSE
Message("Error", SQLErrMsg(), 48);
END
我是这样做的,可是统计不了
楼主最近还看过