mySQL UPDATE query returns “0 rows affected”

后端 未结 11 1137
感情败类
感情败类 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:16

    As amphetamine and Yada suggested, check with a SELECT, if your phone number is in the table.

    But keep in mind: If the value for called of the row in question is already "Yes", mysql won't change the value and will therefore return "0 rows affected". So be sure to also check the current value of called

提交回复
热议问题