我有桌酒店。有多个列,但我想在过滤器列上应用In子句,但发生错误。提供解决方案。
查询是
Select *
from hotel inner
join hoteltype on hotel.type_id=hoteltype.id inner
join area on hotel.area_id=area.id
where area.area='Shivaji Chowk'
and type='Restaurant'
and filter In(Deals,Online Payment available,Pure Vegetarian );
错误是
答案 0 :(得分:1)
您可以在下面尝试-
Select * from hotel inner join hoteltype on hotel.type_id=hoteltype.id
inner join area on hotel.area_id=area.id
where area.area='Shivaji Chowk' and type='Restaurant' and filter In
('Deals','Online Payment available','Pure Vegetarian');