Reputation: 113
I would like to avoid tons of code just doing something like this:
SELECT IF (field1 = 1, field1, field2) AS field,
IF (field = 1, true, false) AS field4
FROM table
I dont want to make IF inside IF to verify these things cos' there's a lot of cases like that.
Upvotes: 0
Views: 22