我有这样的查询:
select myId, myName, myBoolean from myTable
我希望得到一张BIRT表:
if myBoolen is true, print `smart` else print `sorry you're ...`
答案 0 :(得分:1)
select myId,
myName,
case when myBoolean = 1
then 'smart'
else 'sorry ...'
end
from myTable