묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
서브쿼리 Where 질문
2015.09.17 14:59
아마 이게 Where을 쓰는건지 안쓰는건지도 모릅니다만
executeQuery의 두번째 인수를 통해 전달되는 인수가
$args = new stdClass(); 에
$args->member_srl = 멤버 고유 번호인 상태입니다만
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<query id="getManageAppsByMemberSrl" action="select"> <tables> <table name="app_info" alias="app_info" /> </tables> <columns> <column name="app_info.name" /> <column name="app_info.icon" /> </columns> <conditions> <group> <query operation="equal" column="app_info.admin_srl" notnull="notnull" alias="office" pipe="or"> <tables> <table name="app_officer" alias="officers" /> </tables> <columns> <column name="target_srl" alias="target_srl" /> </columns> <conditions> <condition operation="equal" column="officers.member_srl" var="member_srl" notnull="notnull" pipe="and"/> <condition operation="equal" column="officers.is_team" default="N"/> </conditions> </query> <query operation="equal" column="app_info.admin_srl" var="member_srl" notnull="notnull"> </group> </conditions> <navigation> <index var="sort_index" default="app_info.app_srl" order="desc" /> </navigation></query> |
위 의 쿼리중
<condition operation="equal" column="officers.member_srl" var="member_srl" notnull="notnull" pipe="and"/>에서 member_srl이 인수로 주었던 member_srl로 인식이 되는거 같지 않습니다.
물론 쿼리 자체에 문제가 있을지도 모르지만요
무엇이 문제일까요?