플래닛모듈의 이전/다음 날짜를 DB를 통해서 글이 존재하는 날짜를 구하도록 코드 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5140 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-12-22 02:12:20 +00:00
parent 8175cbc67b
commit bcd0ec91fb
5 changed files with 47 additions and 6 deletions

View file

@ -0,0 +1,12 @@
<query id="getNextDate" action="select">
<tables>
<table name="documents" alias="modules" />
</tables>
<columns>
<column name="min(regdate)" alias="next_date" />
</columns>
<conditions>
<condition operation="equal" column="module_srl" var="module_srl" />
<condition operation="more" column="regdate" var="cur_date" notnull="notnull" pipe="and" />
</conditions>
</query>