How to reproduce the following statement of MySQL in SOQL:
SELECT IF(1 = 2,'true','false');
I am trying to do the following:
select if(field1=null,false,true) as res from table
But it is showing me unknown parsing error.
That is not possible in SOQL. Not sure of the requirement here but you may use a formula field instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.