国产成人毛片视频|星空传媒久草视频|欧美激情草久视频|久久久久女女|久操超碰在线播放|亚洲强奸一区二区|五月天丁香社区在线|色婷婷成人丁香网|午夜欧美6666|纯肉无码91视频

mysql怎么獲取當(dāng)前時間 mysql如何獲取當(dāng)前時間?

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

mysql如何獲取當(dāng)前時間?

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

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

current_timestamp() current_timestamp

localtime() localtime

localtimestamp() localtimestamp

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

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

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

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

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

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

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

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