2013-07-02 68 views

回答

2

尝试一个CASE例如

select 
    case 
    when 'hi' in ('hi') then 1 else 0 
end as hi 
2

我相信你可以做的是使用CASE语句,因此返回的条件值作为位:

select case when 'hi' in ('hi') then 1 else 0 end as hi 
相关问题