如果我通过,在 MySQL 查询中:
case guides.Gud_Publish_Date
when null then "Unscheduled"
else "Forth Coming Titles"
end
那么它正在考虑一切都是空的,即使 Gud_Publish_Date 也有价值。完整的 SQL 语句是
SELECT guides.Gud_Id
, guides.Gud_Image
, guides.Gud_SubEditor
, guides.Gud_Reprint_Status
, guides.Gud_Publish_Date
, guides.Gud_Img_Chk
, guides.Gud_Published
, guides.Gud_View
, (
CASE guides.Gud_Publish_Date
WHEN NULL
THEN "Unscheduled"
ELSE "Forth Coming Titles"
END
) AS Schedules
FROM guides
有谁能够帮我?提前致谢