Skip to main content
1 of 6
Midhat
  • 109
  • 7

SET variables in JDatabaseQuery

I'm trying to write this querry:

SET @rownumber = 0;
UPDATE #__hikers SET rank = (@rownumber:=@rownumber+1)
ORDER BY score DESC;

like JDatabaseQuery, but still got an error. Please help

Midhat
  • 109
  • 7