linux 时间戳 转date: 创建自定义函数: create or replace function unix_to_oracle(in_number number) return date is begin ,))); end unix_to_oracle; 使用: ) from dual; date 转linux时间戳: create or replace function oracle_to_unix(in_date in date) return number is…
CREATE OR REPLACE VIEW PDAORDER AS SELECT po.id id, po.order_no AS order_no, po.money AS money, (SELECT TO_CHAR(t.starttime / (1000 * 60 * 60 * 24) + TO_DATE('1970-01-01', 'YYYY-MM-DD'), 'YYYY-MM-DD') as starttime FROM Pda_Order t WHERE t.id = po.id)…