以Case...When...Then...End分列输出
摘要:
SELECT 日期, 姓名, (CASE 出勤状态 WHEN '白班' THEN '○' END) AS 白班, (CASE 出勤状态 WHEN '夜班' THEN '○' END) AS 夜班, (CASE 出勤状态 WHEN '休息' THEN '○' END) AS 休息, (CASE 出勤状态 WHEN '调休' THEN '○' END) AS 调休, (CASE 出勤状态 WHEN '... 阅读全文
posted @ 2006-09-05 09:08 唢呐 阅读(776) 评论(0) 推荐(0) 编辑