0

我有一个这样的查询:

select myId, myName, myBoolean from myTable

我希望得到一个 BIRT 表:

if myBoolen is true, print `smart` else print `sorry you're ...`
4

1 回答 1

1
select myId, 
       myName, 
       case when myBoolean = 1 
            then 'smart' 
            else 'sorry ...'  
       end
from myTable
于 2013-01-07T14:50:25.267 回答