插入全年日期進入mgs_psd_report表f1欄位(用Oracle完成)
mgs_psd_report这张表的列名是:F1,F2,F3,F4,F5.........列名一直到F158
我这么把全年日期添加到F1列中
------解决方案--------------------
insert into mgs_psd_report(f1)
select trunc(sysdate,'yyyy')+rownum-1 from dual connect by rownum<=365;
insert into mgs_psd_report(f1)
select trunc(sysdate,'yyyy')+rownum-1 from dual connect by rownum<=365;