select A.registerDate as 登记日期,B.productType as 产品类型
from zcht_tz as A full outer join zcht_hk as B on A.htHao=B.htHao
where
(
case when B.sumLaiKuan<A.yuFuKuan
then true
else false
end
)
总是报语法错误!!各位给点意见。。。
...全文
1082打赏收藏
case...when...then...不能返回布尔值吗?
select A.registerDate as 登记日期,B.productType as 产品类型 from zcht_tz as A full outer join zcht_hk as B on A.htHao=B.htHao where ( case when B.sumLaiKuan<A.yuFuKuan then true else false end ) 总是报语法错误!!各位给点意见。。。
--加上单引号就好了
select A.registerDate as 登记日期,B.productType as 产品类型
from zcht_tz as A full outer join zcht_hk as B on A.htHao=B.htHao
where
(
case when B.sumLaiKuan<A.yuFuKuan
then 'true'
else 'false'
end
)