MySQL Double Equal Sign

I am debugging an old website and I am getting some SQL errors. When I went through it, I found the following query.

UPDATE boats set new_high_date == DATE_ADD(NOW(), INTERVAL 3 MONTH) WHERE id=49701 

I do not know what == means. Is this a valid request? I can’t execute it.

I'm not sure if I should change this, or does it mean something?

+4
sql php mysql
Oct 16
source share
3 answers

There is no double value in MySQL, so you must remove it.

+13
Oct. 16
source share

This is not true, in sql there is no double equal sign. The correct installation method is

 UPDATE boats SET new_high_date = DATE_ADD(NOW(), INTERVAL 3 MONTH) WHERE id = 49701 
+8
Oct 16
source share

Blindly, you can delete them because MYSQL does not have ==

+4
Oct 16
source share



All Articles