gpt4 book ai didi

Mysql语法错误: 'WHERE NOT LIKE'

转载 作者:行者123 更新时间:2023-11-29 06:06:47 26 4
gpt4 key购买 nike

我试图通过每 24 小时仅插入唯一值来跟踪页面 View 。但是当我运行此查询时,出现语法错误。

insert ignore into profilepageviews values( '77.777.777.777' , CURRENT_TIMESTAMP, '5') where hitdate NOT LIKE '%2012-06-26%'

错误:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where hitdate NOT LIKE '%2012-06-26%'' at line 1

最佳答案

您不能将 WHERE 子句与 INSERT 一起使用,您可能需要 UPDATE

关于Mysql语法错误: 'WHERE NOT LIKE' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11206761/

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