[TYPO3-dev] Update query with increment

Dmitry Dulepov [typo3] dmitry at typo3.org
Sun Dec 30 18:30:14 CET 2007


Hi!

Steffen Kamper wrote:
> a while ago i thought that it is not possible to do a query like
> 
> UPDATE tx_counter SET counter=counter+1
> 
> with the TYPO3 DBwrapper-function. I remember i asked here in the list for 
> that, and because of no answer with the right usage i looked again to the 
> wrapper class, and it is possible.

Just for the record: it can be done with $GLOBALS['TYPO3_DB']->sql_query() but then it needs full query.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"




More information about the TYPO3-dev mailing list