tyson記事本

Google & man(Unix) are your best friends!

Skip to: Content | Sidebar | Footer

西元年 -> 民國年

15 January, 2005 (12:31) | Oracle | By: tyson

Select (to_number(to_char(sysdate,’yyyy’)) – 1911)to_char(sysdate,’/MM/DD HH24:MI:SS’) AS AAD from dual;
select to_char(add_months(sysdate,-(1911*12)),’YY/MM/DD HH24:MI:SS’) from dual;
select add_months(sysdate,-(1911*12)) from dual

Write a comment





For spam filtering purposes, please copy the number 2275 to the field below: