卖逼视频免费看片|狼人就干网中文字慕|成人av影院导航|人妻少妇精品无码专区二区妖婧|亚洲丝袜视频玖玖|一区二区免费中文|日本高清无码一区|国产91无码小说|国产黄片子视频91sese日韩|免费高清无码成人网站入口

mysql怎么獲取當前時間 mysql如何獲取當前時間?

mysql如何獲取當前時間?1.1 獲得當前日期 時間(date time)函數(shù):now() 除了 now() 函數(shù)能獲得當前的日期時間外,MySQL 中還有下面的函數(shù): current_time

mysql如何獲取當前時間?

1.1 獲得當前日期 時間(date time)函數(shù):now()

除了 now() 函數(shù)能獲得當前的日期時間外,MySQL 中還有下面的函數(shù):

current_timestamp() current_timestamp

localtime() localtime

localtimestamp() localtimestamp

這些日期時間函數(shù),都等同于 now()。鑒于 now() 函數(shù)簡短易記,建議總是使用 now() 來替代上面列出的函數(shù)。

1.2 獲得當前日期 時間(date time)函數(shù):sysdate()

sysdate() 日期時間函數(shù)跟 now() 類似,不同之處在于:now() 在執(zhí)行開始時值就得到了, sysdate() 在函數(shù)執(zhí)行時動態(tài)得到值。

2. 獲得當前日期(date)函數(shù):curdate()

其中,下面的兩個日期函數(shù)等同于 curdate(): current_date(),current_date

3. 獲得當前時間(time)函數(shù):curtime()

其中,下面的兩個時間函數(shù)等同于 curtime():current_time(),current_time

4. 獲得當前 UTC 日期時間函數(shù):utc_date(), utc_time(), utc_timestamp()