我有一个名为"Vaccine“的表,如下所示
vaccine_name | date | expired
-------------------------
coldact | 12-12-12 | N
cough | 11-11-11 | Y
asparin | 10-10-10 | Y我想要在到期日期显示'*‘的select子句
vaccine_name | date |
-------------------------
coldact | 12-12-12*
cough | 11-11-11
asparin | 10-10-10 类似于:
Select vaccine_name,date case when
expired = 'N' then '*'
else date
from Vaccine
where date < 09-09-09;在SQL中,我想在日期值where expired = 'N‘的旁边加上一个*。
https://stackoverflow.com/questions/38449205
复制相似问题