select cashiername
from payment
where CashierID = 007
我想在cashierid = 007
,cashiername
为N / A而其他cashiername
根据cashierid
答案 0 :(得分:3)
select CASE WHEN CashierID = '007' THEN 'N/A' ELSE cashiername END as cashiername
from payment
答案 1 :(得分:0)
var res = str.replace("EUR", "");
这样做:
它是一个返回cashierid = 007的行的查询。收银员名称为N / A.
要根据他们的收银员检索其他收银员名称,您只需编写
select cashiername from payment where CashierID = 007