[spring][native_query][Pageable]Table ‘…’ from one of the SELECTs cannot be used in ORDER clause”


[spring][native_query][Pageable]Table ‘…’ from one of the SELECTs cannot be used in ORDER clause”

상황) native query와 Pageable을 동시에 쓸 때 발생하였습니다. 이유) 원인을 살펴보니 Pageable에 있는 Sort 기능이 !!! native 쿼리의 alias와 매칭이 안되서 입니다. 해결방법) Pageable Sort를 안쓰면 됩니다. + 정렬 기능이 필요하시다면 native query에 직접 명시하면 됩니다. 참고 사이트 : https://database.guide/fix-error-1250-42000-table-from-one-of-the-selects-cannot-be-used-in-order-clause-in-mariadb/ Fix “ERROR 1250 (42000): Table ‘…’ from one of the SELECTs cannot be used in ORDER clause” in MariaDB Fix “ERROR 1250 (42000): Table ‘…’ from one of the SELECTs cannot be used in ORDER c...


#clause #spring #Sort #SELECTs #query #pageable #ORDER_clause #ORDER #one #native_query #native #from #table

원문링크 : [spring][native_query][Pageable]Table ‘…’ from one of the SELECTs cannot be used in ORDER clause”