多变量的案例陈述
答
为什么不使用联盟,而不是一个case语句。(表结构和列结构不知道,但你可以用下面的概念。
select productname, expiratieonDate as Expiration
from <table>
where productType = fruits
UNION
select productname, 1 as Expiration
from <table>
where productType = nonexpiration
请向我们提供一些示例数据和表结构,预期的结果集,以及到目前为止已经增长的查询,以便其他人可以提供帮助。 – 2014-08-29 18:45:31
case this when this = true或(that is null and this = false)then 1 else'I am a香蕉'结束 – Twelfth 2014-08-29 19:21:40