MySQL Double Equal Sign

前端 未结 3 1852
悲哀的现实
悲哀的现实 2021-01-13 16:55

I\'m debugging an old website, and I get some SQL errors. When I went through it, I found the following query.

UPDATE boats
set    new_high_date == DATE_ADD(         


        
相关标签:
3条回答
  • 2021-01-13 17:07

    That is incorrect, there is no double equal sign in sql. The correct way to set is

    UPDATE boats 
    SET    new_high_date = DATE_ADD(NOW(), INTERVAL 3 MONTH)
    WHERE  id = 49701
    
    0 讨论(0)
  • 2021-01-13 17:15

    There is no double equal in MySQL so you should remove it.

    0 讨论(0)
  • 2021-01-13 17:19

    Blindly you can remove them because MYSQL doesn't have any ==

    0 讨论(0)
提交回复
热议问题