sql错误:当没有用 EXISTS 引入子查询时,在选择列表中只能指定一个表达式"怎么解决啊?
sql语句如下:
select count(*) from mwhbe_hotel_info where 1=1 and hotel_id in
(SELECT DISTINCT hotel_id,rate_amout FROM view_hotel_price WHERE (rate_amout > 700 and rate_amout < 1000))
and is_hotel_status='y' and city_code='SZX' and (rank_code ='5' or rank_code ='5A')