coolpig379 2015-06-07 06:49 采纳率: 0%
浏览 6717

mysql update操作 出现incorrect datetime value

    update iportal_wx.inviterelationshipcycle as A,
(select * from iportal_wx.register where register_ctime<current_timestamp()
AND register_ctime>ADDDATE(current_timestamp(),-1)) as B
set A.IsAttentionHNLLGJ='Y'
where A.MDN_PY=B.user_phone;

    时间对象的数据类型均为datetime
  • 写回答

1条回答

  • danielinbiti 2015-06-07 06:59
    关注
     update iportal_wx.inviterelationshipcycle as A
    set A.IsAttentionHNLLGJ='Y'
    where exists(select 1 from iportal_wx.register where register_ctime<current_timestamp()
    AND register_ctime>ADDDATE(current_timestamp(),-1) and A.MDN_PY=user_phone);
    
    评论

报告相同问题?

悬赏问题

  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services