SELECT field1, field2,
Budget = CASE field2
WHEN field2> 20.00 THEN 'Expensive'
WHEN field2 BETWEEN 10.00 AND 19.99 THEN 'Moderate'
WHEN field2< 10.00 THEN 'Inexpensive'
ELSE 'Unknown'
END
FROM table1
该表存在。字段存在。但是这些都用红色下划线:< BETWEEN AND
有谁知道我做错了什么?