【问题标题】:How to cast a boolean value to string by using BIRT如何使用 BIRT 将布尔值转换为字符串
【发布时间】:2013-01-07 14:47:41
【问题描述】:

我有这样的疑问:

select myId, myName, myBoolean from myTable

我希望得到一个 BIRT 表:

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

【问题讨论】:

    标签: sql eclipse birt


    【解决方案1】:
    select myId, 
           myName, 
           case when myBoolean = 1 
                then 'smart' 
                else 'sorry ...'  
           end
    from myTable
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-17
      • 2012-04-02
      • 2021-02-23
      • 1970-01-01
      • 1970-01-01
      • 2018-09-07
      • 1970-01-01
      相关资源
      最近更新 更多