여기 left join 이유?

여기 left join 이유?

QA

여기 left join 이유?

답변 1

본문

파일명 : 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 상품테이블인데

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

 


답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 1,178
© SIRSOFT
현재 페이지 제일 처음으로