Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 如何使用BIRT将布尔值转换为字符串_Sql_Eclipse_Birt - Fatal编程技术网

Sql 如何使用BIRT将布尔值转换为字符串

Sql 如何使用BIRT将布尔值转换为字符串,sql,eclipse,birt,Sql,Eclipse,Birt,我有这样一个问题: select myId, myName, myBoolean from myTable 我希望得到一张BIRT桌: if myBoolen is true, print `smart` else print `sorry you're ...` select myId, myName, case when myBoolean = 1 then 'smart' else 'sorry ...

我有这样一个问题:

select myId, myName, myBoolean from myTable
我希望得到一张BIRT桌:

if myBoolen is true, print `smart` else print `sorry you're ...`
select myId, 
       myName, 
       case when myBoolean = 1 
            then 'smart' 
            else 'sorry ...'  
       end
from myTable