[0racle] paging처리 시 with절을 이용한 데이터 정렬(order by, rownum 함께 사용 주의)
체크박스가 적용되는 페이징을 위해 여러 테이블을 idx가 같은것끼리 묶어주고 조건을 적용해 원하는 개수의 열만큼 가져오고싶었다. SELECT * FROM review r left outer join member_info m on(r.member_idx = m.idx) where VEHICLE_IDX=1 order by create_date asc; select v.*, f.type as fuelname, c.type as typename, l.name from FUELTYPE f, CARTYPE c, VEHICLE v ,location l where v.cartype_idx = c.idx and v.fueltype_idx = f.idx and v.location_idx=l.idx and rownum be..
프로그래밍/database
2023. 4. 26. 03:33