묻고답하기
XML 조인 쿼리문에 대해 간단한 질문 있어요!
2010.02.02 19:45
웹프로그램 완전 초짜라..아직 뭘봐도 뭐 감이 잘 안서네요ㅜㅜ 가르쳐주는 사람도 없고 ㅜ
지금 쿼리 조인문을 만드는데요.. 일단 아래 예제가 있습니다.
<query id="getNewestDocuments" action="select">
<tables>
<table name="documents" alias="documents" />
<table name="document_categories" alias="categories" />
</tables>
<columns>
<column name="documents.*" />
<column name="categories.title" alias="categories_title" />
</columns>
<conditions>
<condition operation="in" column="documents.module_srl" var="module_srl" filter="number" />
<condition operation="equal" column="documents.category_srl"
default="categories.category_srl" notnull="notnull" pipe="and" />
<condition operation="equal" column="documents.is_notice" var="notice_type" pipe="and" />
<condition operation="equal" column="documents.document_srl" var="document_id" pipe="and" />
<condition operation="notin" column="documents.category_srl" var="category_id" pipe="and" />
</conditions>
<navigation>
<index var="sort_index" default="documents.list_order" order="order_type" />
<list_count var="list_count" default="20" />
</navigation>
</query>
만약에 documents테이블의 a라는 필드와 document_categories의 b라는 필드가 같을 때 documents테이블의 user_id라는
필드를 가져오고 싶으면 <condition>태그에 어떻게 넣어야 되나요???
<condition operation="equal" column="documents.a" var=document_categories.b" />
뭐 이런식인가요?
알려주시면 감사하겠습니다!ㅜㅜ
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
팬덤 | XE설치 진행 초기부분 질문입니다 [2] | 2009.10.26 by pidkr |
죽암 | zbxe 백업방법은 [2] | 2009.10.26 by pidkr |
111291 |
고수님들 안녕하세요 회원가입
[1]
![]() | 2009.10.26 by 감로수 |
취무성 | 댓글이 비공개로 달려요 | |
다른사람 | .htaccess 이용한 ip차단 [1] | 2009.10.26 by 라르게덴 |
개발. | 페이지 이름 가져오는 변수가 어떻게 되나요.. [1] | 2009.10.26 by 라르게덴 |
조은걸 | 모듈,위젯 의 개념에 대해서 [2] | 2009.10.26 by 조은걸 |
공듀 | 글 작성시 더보기 방법에 관해 [1] | 2009.10.26 by 감로수 |
물개하품 |
게시판 가로크기
[1]
![]() | 2009.10.26 by 감로수 |
이션. | 제로보드4에서 XE를 다운받았는데 [1] | 2009.10.26 by Gekkou |
auror | 라이트박스 로그인 오류문제 해결좀?? | |
하나둘셋p | 회원정보 레이아웃 문제 | |
龍군 |
1차메뉴 위치가 이동이 안됩니다.
![]() | |
movement | XE 설치시 FTP정보를 입력하면 다시 첫화면으로 돌아가요. | |
미노스김 | 우측메뉴 글자 사이즈 [2] | 2009.10.27 by 궁금이2 |
Jo656 | xe 와 wordpress 의 차이점 | |
onionhk | xe_official_v2 에서 오른쪽이나 왼쪽의 서브메뉴에 3차 메뉴 보이게 하는 방법 | |
ByeolSatang |
그림과 같이 게시판 생성 메뉴가 없어요
[1]
![]() | 2009.10.27 by ByeolSatang |
성작가 | 날짜 일괄 변경하기 | |
보라생이 | tomcat 과 mysql이 설치 되어 있는 서버에 apache를 설치 해도 될까요? |
join시 var이 아니라 default 를 사용합니다~