tyson記事本

Google & man(Unix) are your best friends!

Skip to: Content | Sidebar | Footer

Month: January, 2005

一杯水

17 January, 2005 (19:14) | T.Family, T.Life | By: tyson

我女友問我: 你對我的容忍只有一杯水的容量, 那你現在.
我的回答: 我的那杯水, 起起伏伏, 有時會增加, 有時會蒸發.

我不要當好人~~~

16 January, 2005 (12:30) | Other | By: tyson

當預約日期小於今天就不要show

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

select * from tt where to_date(’2004′ || ‘/’ || tmonth || ‘/’ || tday,’yyyy/mm/dd’) > mdate

給我整個月,其餘免談

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

select create_date from break_report
where create_date between to_date(’2004/07/01 00:00:00′,’YYYY/MM/DD HH24:MI:SS’)
and last_day(to_date(’2004/07/01 23:59:59′,’YYYY/MM/DD HH24:MI:SS’))

西元年 -> 民國年

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

畜生聰授權條款:cruel creature license,又稱cc

15 January, 2005 (12:26) | Other | By: tyson

第一條:不要一天到晚煩我可不可以轉載,我一煩就會殺你全家。
第二條:你拿去用如果讓我不爽,我不爽就會殺你全家。
第三條:就算你沒有觸犯前兩條,我沒事還是會去殺你全家。
第四條:歸納前三條,結論:殺你全家。