묻고답하기

쿼리 질문..

2013.05.22 09:13

공유나라



확장변수를 통해 검색시

 

<query id="getDocumentListWithExtraVars" action="select">
    <tables>
        <table name="documents" />
        <table name="document_extra_vars" alias="extra_vars" />
    </tables>
    <columns>
        <column name="documents.*" />
    </columns>
    <conditions>
        <condition operation="in" column="documents.module_srl" var="module_srl" filter="number" />
        <condition operation="in" column="documents.category_srl" var="category_srl" filter="number" pipe="and" />
        <condition operation="equal" column="extra_vars.module_srl" default="documents.module_srl" pipe="and" />
        <condition operation="equal" column="extra_vars.document_srl" default="documents.document_srl" pipe="and" />
        <condition operation="equal" column="extra_vars.var_idx" var="var_idx" notnull="notnull" pipe="or" />
        <condition operation="equal" column="extra_vars.var_idx" var="var_idx2" notnull="notnull" pipe="or" />
        <condition operation="in" column="documents.status" var="statusList" pipe="and" />
        <condition operation="like" column="extra_vars.value" var="var_value" notnull="notnull" pipe="and" />
       <condition operation="like" column="extra_vars.value" var="var_value2" notnull="notnull" pipe="and" />

    </conditions>
 <groups>
  <group column="extra_vars.document_srl" />
 </groups>
    <navigation>
        <index var="sort_index" default="documents.list_order" order="order_type" />
        <list_count var="list_count" default="20" />
        <page_count var="page_count" default="10" />
        <page var="page" default="1" />
    </navigation>
</query>

 

 

쿼리를타는데요 (굵은부분 제가수정)

확장변수를 1개 더받아와서 확장변수1(지역) 확장변수2(구) 이렇게 같이 검색하려합니다. idx가 지역은 1 구는 2입니다..

 

저렇게 작성하면 지역이 뭐면서 무슨구 이렇게가져오나요?

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
치올 컬러셑의 추가  
치올 줄변경 하지 않기 질문 [1] 2009.12.28 by 시니시즘
Akzin 기본 카운터 위젯이 동작을 안 합니다. [2] 2009.12.28 by Ball
......욤 xeHome 스킨 코어1.3.1.2버전에선 안되는지요?  
시니시즘 회원가입시나 수정시 닉네임/ID /E-mail 은 중복체크를 하자나요 . 이름도 가능할까요?  
최창걸 불량 ip 관련  
유아원 메뉴가 이상하게 보입니다 file  
앤츠 레이아웃을 다른 이름으로 저장해서 사용하려 어떻게 해야 하나요? [2] 2009.12.29 by 치올
한주네 레이아웃 설정에 대하여 여쭐까 합니다.  
싸나이김 실시간회원로그인관련  
투도리 게시판 작은 따옴표 글 안올라갑니다. [1] file 2009.12.29 by 백성찬
하이스쿨페이지 창로그인 질문 [1] 2009.12.29 by NEARSTORY
우뉴 [MySQL] data Type 변경하는 방법, data 추가하는 방법 질문 [3] 2009.12.29 by ui
카이네드 XE 루트설치 후 문제 [2] 2009.12.29 by Gekkou
안주짱 게시판관리창이 엑박이떠요 file  
개발. 오래있으면 자동으로 로그아웃되는거 같은데요.. 시간이 얼마나 지나야 되나요  
치올 스프링노트연동 [1] 2009.12.29 by 백성찬
뮤랑이 해당 모듈의 모든 글수를 뽑으려면 어떻게 해야 하나요? [2] 2009.12.29 by 라르게덴
개발. 게시판에 글쓰기 할때 비밀번호를 설정할 수 있나요..? [1] 2009.12.29 by 백성찬
달팽이355 다운로드랭킹에서 날짜별로 출력하기 [1] 2009.12.29 by 라르게덴