일부 MySQL 쿼리를 포스트 그레스로 이동하는 중입니다. 작동하지 않는이 쿼리를 실행했습니다.여러 테이블에 왼쪽 조인을 수행하는 데 문제가 있습니다.
select (tons of stuff)
from trip_publication
left join trip_collection AS "tc" on
tc.id = tp.collection_id
left join
trip_author ta1, (dies here)
trip_person tp1,
trip_institution tai1,
trip_location tail1,
trip_rank tr1
ON
tp.id = ta1.publication_id
AND tp1.id = ta1.person_id
AND ta1.order = 1
AND tai1.id = ta1.institution_id
AND tail1.id = tai1.location_id
AND ta1.rank_id = tr1.id
위의 "trip_author ta1"행에 쿼리가 죽어가는 것 같습니다. 실제 오류 메시지는 다음과 같습니다.
syntax error at or near ","
LINE 77: (trip_author ta1, trip_person tp1, ...
문서를 검토 한 결과 올바른 것으로 보입니다. 여기 정확히 내가 뭘 잘못하고 있니? 모든 의견을 많이 주시면 감사하겠습니다.
에 마법처럼 일했다. 감사! –