search

Home  >  Q&A  >  body text

mysql 如何获取 每天早上 9 点的 unix 时间戳?

1.各位大神,mysql 如何获取 每天早上 9 点的 unix 时间戳啊,弄了好久都没有成功

巴扎黑巴扎黑2875 days ago720

reply all(3)I'll reply

  • 阿神

    阿神2017-04-17 14:01:37

    I don’t know if there is a better way

    select unix_timestamp(CONCAT(curdate(),' 09:00:00'));

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 14:01:37

    The time of mysql comes from the time on the server, and the server must be set with ntp.
    I don’t understand what you said about getting the unix timestamp at 9 o’clock. UNIX_TIMESTAMP can convert the timestamp.

    Do you want a scheduled task at 9 o'clock every morning?

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 14:01:37

    Use MySQL event and you will understand

    reply
    0
  • Cancelreply