티스토리 뷰
https://kinghell.tistory.com/173 참고 "Ambiguous column name"
두 table join 후 양쪽 table에서 쓰는 column name으로 query를 하다가 발생.
table명 + "." + column name 으로 어떤 table의 column name을 쓸 건지 지정해주는 것으로 해결
foreign key (ambiguous column name이라고 뜬 값) 로 query 시 항상 이게 발생할 텐데
그럼 항상 이렇게 table명 + "." 을 붙어줘야 하는건가?
댓글