In mysql kan ik eenvoudig if statements verwerken in de sql query:
SELECT IF((s.time > 0, s.time, 99999999) as gtime etc...
Maar in postgres krijg ik dan een error:
Function 'iff(bool, int4)' does not exist Unable to identify a function that satisfies the given argument types You may need to add explicit typecasts
hierover staat niets in de manual van postgres en ik kan verder ook niets vinden hierover online. Iemand een idee?
SELECT IF((s.time > 0, s.time, 99999999) as gtime etc...
Maar in postgres krijg ik dan een error:
Function 'iff(bool, int4)' does not exist Unable to identify a function that satisfies the given argument types You may need to add explicit typecasts
hierover staat niets in de manual van postgres en ik kan verder ook niets vinden hierover online. Iemand een idee?