여기 left join 이유?

여기 left join 이유?

QA

여기 left join 이유?

본문

파일명 : lib/shop.lib.php  293째줄 정도에서요 

left join 하는 이유가??? 궁금합니다^^

 

 

            if ($this->event) {

                $sql_select = " select {$this->fields} ";

                

                $sql_common = " from `{$g5['g5_shop_event_item_table']}` a left join `{$g5['g5_shop_item_table']}` b on (a.it_id = b.it_id) ";

                $where[] = " a.ev_id = '{$this->event}' ";


이 질문에 댓글 쓰기 :

답변 1

g5_shop_event_item_table 는 이벤트 테이블이고 

g5_shop_item_table 상품테이블인데

상품에 이벤트가 걸려있다면 상품정보도 찾으려고 레프트 조인으로 묶었네요. 

 


답변을 작성하시기 전에 로그인 해주세요.
전체 68
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT