oracle 生成隨機日期+時間oracle
SELECT to_date(TRUNC(DBMS_RANDOM.VALUE(to_number(to_char(to_date('20110101','yyyymmdd'),'J')),to_number(to_char(to_date('20221231','yyyymmdd')+1,'J')))),'J')+ DBMS_RANDOM.VALUE(1,3600)/3600 dttm FROM dual;date