数据库的字段输出的值的问题,急~~~~~~~~~~~~~~~~~~~

2025-01-05 11:34:42
推荐回答(2个)
回答1:

SELECT BookName, BookAuthor, PubName, BookStyle, Subject, BookLanguage, CASE BookState WHEN 1 THEN '借出' WHEN 2 THEN '在库' WHEN 3 THEN '已预约' END AS Expr1 FROM BookInfo
要加上引号

回答2:

最后加 else '' end