Sunday, June 16, 2013

IFNULL - MySQL

IFNULL(`field1`, `field2`)

That returns field1 if it's not null. However, it will return field2 if it is null.

No comments:

Post a Comment