rpt_now_date.lwm 638 Bytes
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                	to_char(sysdate,'YYYY') now_year,
                    to_char(sysdate,'MM')  now_month,
                    to_char(sysdate,'DD')  now_day,
                    to_char(sysdate,'YYYY-MM-DD') now_date,
                    to_char(TRUNC(sysdate) -1,'YYYY-MM-DD')  yesterday
                FROM
                    dual
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>