mySQL UPDATE query returns “0 rows affected”

后端 未结 11 1128
感情败类
感情败类 2020-12-05 18:39

I have this query:

UPDATE phonecalls 
   SET Called = \"Yes\" 
 WHERE PhoneNumber = \"999 29-4655\"

My table is phonecalls, I

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 19:04

    Check to make sure this returns some result.

    SELECT * FROM phonecalls WHERE PhoneNumber = '999 29-4655'
    

    If it doesn't return any result than the filter WHERE PhoneNumber = '999 29-4655' is not correct.

提交回复
热议问题