<query id="updateCategoryCount" action="update">
    <tables>
        <table name="document_categories" />
    </tables>
    <columns>
        <column name="document_count" var="document_count" />
        <column name="document_count" var="document_count_diff" operation="plus" />
        <column name="last_update" var="last_update" default="curdate()" />
    </columns>
    <conditions>
        <condition operation="equal" column="category_srl" var="category_srl" filter="number" notnull="notnull" />
    </conditions>
</query>
