『MySQL』时间差

来源:互联网 发布:国际歌在中国禁止知乎 编辑:程序博客网 时间:2024/05/20 16:41
1 DATEDIFF(now(),start) <=7

now() 当前时间

start 数据库时间字段

表示相关7天时间。


<script type="text/javascript"><!--google_ad_client = "ca-pub-1944176156128447";/* cnblogs 首页横幅 */google_ad_slot = "5419468456";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>