Get DATETIME in php and post it to MySQL for transaction consistency

后端 未结 3 1017
一向
一向 2020-12-31 17:41

Here is a link to the reason behind this question: NOW() for DATETIME InnoDB Transaction guaranteed?

So to ensure a single transaction with any number of queries (

3条回答
  •  耶瑟儿~
    2020-12-31 18:15

    You can do:

    This avoids any possible issues of timezones, or local date formats.

提交回复
热议问题