<query id="updateDocument" action="update">
    <tables>
        <table name="documents" />
    </tables>
    <columns>
        <column name="module_srl" var="module_srl" filter="number" default="0" />
        <column name="category_srl" var="category_srl" filter="number" default="0" />
        <column name="is_notice" var="is_notice" notnull="notnull" default="N" />
        <column name="is_secret" var="is_secret" notnull="notnull" default="N" />
        <column name="title" var="title" notnull="notnull" minlength="1" maxlength="250" />
        <column name="title_bold" var="title_bold" default="N" />
        <column name="title_color" var="title_color" default="N" />
        <column name="content" var="content" notnull="notnull" />
        <column name="uploaded_count" var="uploaded_count" default="0" />
        <column name="password" var="password" minlength="2" maxlength="60" />
        <column name="nick_name" var="nick_name" minlength="1" maxlength="40" />
        <column name="member_srl" var="member_srl" />
        <column name="user_id" var="user_id" />
        <column name="user_name" var="user_name" default="" />
        <column name="email_address" var="email_address" filter="email" maxlength="250" />
        <column name="homepage" var="homepage" filter="homepage" maxlength="250" />
        <column name="tags" var="tags" />
        <column name="extra_vars" var="extra_vars" />
        <column name="last_update" var="last_update" default="curdate()" />
        <column name="ipaddress" var="ipaddress" default="ipaddress()" />
        <column name="list_order" var="list_order" />
        <column name="update_order" var="update_order" default="0" />
        <column name="allow_comment" var="allow_comment" default="Y" />
        <column name="lock_comment" var="lock_comment" default="N" />
        <column name="allow_trackback" var="allow_trackback" default="Y" />
        <column name="notify_message" var="notify_message" default="N" />
    </columns>
    <conditions>
        <condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
    </conditions>
</query>
