提供各行各業搜尋、查價比價服務
讓你輕鬆找到各式各行各業價格
搜尋引擎系統家具櫥櫃設計製作專家,舉凡客廳
書房、臥室等皆可適用,歡迎洽詢

首頁  •  j2h 論壇 • 程式設計討論     • 

[php] PHP日期

房東:小黃
發表時間:2010-10-22
[檢舉]


select* \'form date where
uid = colname and d-time beteeen \'2009-09-01\' and \'2009-11-04\'


select * from xxx where
curdate() between SUBDATE($d-time,INTERVAL 3 DAY) and $d-time


前一星期
select * from xxx where
curdate() between SUBDATE($d-time,INTERVAL 1 WEEK) and $d-time
前一個月
select * from xxx where
curdate() between SUBDATE($d-time,INTERVAL 1 MONTH) and $d-time
前半年
select * from xxx where
curdate() between SUBDATE($d-time,INTERVAL 6 MONTH) and $d-time

2010-09-25 22:24:46 補充



  • 贊助網站       

    廣利不動產-板橋在地生根最實在--新板特區指名度最高、值得您信賴的好房仲
    完整房訊,房屋、店面熱門精選物件,廣利不動產 優質仲介,房屋租賃、買賣資訊透明,交易真安心!
    廣利不動產-新板特區指名度最高、值得您信賴的好房仲
    您的托付,廣利用心為您服務



  •  共 0 人回應

    姓名:
    佈告內容: