0

24時間ごとに一意の値のみを挿入してページビューを追跡しようとしていますが、このクエリを実行すると構文エラーが発生します。

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
4

1 に答える 1

3

WHEREで句を使用することはできませINSERTん。UPDATE

于 2012-06-26T11:54:36.707 に答える