- 论坛徽章:
- 0
|
SELECT *
FROM(
select /*+ INDEX(VENUES VENUES_CITY) */ District,Address1,Name,Phone,VenueID,feature,elong_lohoo_card,DIRECTIONS,parentvenueid,venuetype,2 from Venues where ( branchvenue=0 and status=3 and (elong_card is not null or elong_lohoo_card is not null) and ((sysdate-end_date)<2)) order by VenueID desc
)
WHERE rownum<=7
minus
SELECT *
FROM(
select /*+ INDEX(VENUES VENUES_CITY) */ District,Address1,Name,Phone,VenueID,feature,elong_lohoo_card,DIRECTIONS,parentvenueid,venuetype,2 from Venues where ( branchvenue=0 and status=3 and (elong_card is not null or elong_lohoo_card is not null) and ((sysdate-end_date)<2)) order by VenueID desc
)
WHERE rownum<=8
ORDER BY 5 DESC
报错误的使用long类型,请问我该怎么改写。note是long |
|