[TYPO3-dev] Tip: use SQL function COUNT(*)

Ingo Renner ingo at typo3.org
Fri Jul 18 12:23:48 CEST 2008


Martin Kutschker wrote:

> Anyway it's better to use this:
> 
> $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)', 'tx_table');

$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(uid)', 'tx_table');

;)


-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2




More information about the TYPO3-dev mailing list