gpt4 book ai didi

mysql - 将日期字段设置为当前今天日期,而不在 mysql 中指定时间

转载 作者:行者123 更新时间:2023-11-29 20:48:59 24 4
gpt4 key购买 nike

如何仅使用“当前今天日期”设置默认日期字段,而不提及 mysql 中的时间。

<小时/>

示例:

  1. 2016-07-05 ---> 我想要什么(今天)
  2. 2016-07-05 18:53:44 ---> 不需要 x

最佳答案

mysql> insert into Table(date) values(now());
Query OK, 1 row affected, 3 warnings (0.06 sec)

关于mysql - 将日期字段设置为当前今天日期,而不在 mysql 中指定时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38208782/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com