select
case when right(convert(varchar(10),[CR],120),5)='04-14' then 'A' else 'B' end as [3æ14æ¥],
from CR
å¨SQLéIIFççä»·å½æ°ä¸ºï¼Case
示ä¾ï¼
两ç§ç®åæ ¼å¼
Caseå½æ°åCaseæç´¢å½æ°ã
--ç®åCaseå½æ°
CASE sex WHEN '1' THEN 'ç·' WHEN '2' THEN '女' ELSE 'å
¶ä»' END
--Caseæç´¢å½æ°
CASE WHEN sex = '1' THEN âç·' WHEN sex = '2' THEN '女' ELSE 'å
¶ä»â END
温馨提示:答案为网友推荐,仅供参考