Skip links

Query de Kayıt Sayısını Nasıl Sayarız


Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 117

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 118

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 117

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 118
Query de Kayıt Sayısını Nasıl Sayarız

Merhaba
Diyelim bir rapor yaptınız. Kaç kayıt olduğunu saymak istiyorsunuz  SysQuery::countTotal(qr) işinizi görür. Bir kullanım örneği şöyle olabilir.

Query    q;
QueryRun qr;
;
q = new Query();
q.addDataSource(tableNum(CustTable), tableStr(CustTable));
qr = new QueryRun(q);
info(int2str(SysQuery::countTotal(qr)));
Çalışma zamanında saymak isterseniz
public void executeQuery() {

   super();
   info(int2str(SysQuery::countLoops(InventTable_ds.queryRun())));

}

Join the Discussion