mysql函數(日期函數)

三.日期函數 1.now 返回擋牆時間 2.curdate 返回當前系統日期,不包含時間 3.curtime 返回當前時間,不包含日期 4.獲取指定部分時間年,月,日,小時,分鐘,秒 year(now()); year(‘1998-1-1’)//傳入常量值 month(now()); 5.str_to_date() 將指定的格式轉換成日期 str_to_data(‘1993-1-11’,’%Y-%
相關文章
相關標籤/搜索