I am sending an SQL UPDATE query, and the mySQL database is behaving strangely. It returns a successful response, but it is affected by 0 lines. The code:
UPDATE place
SET city='Qatar' AND country='Qatar'
WHERE placeid='25'
Response: Successful 0 row(s) affected. ( Query took 0.0003 sec )
There is definitely a record in the database with placeid = '25 '. If I do SELECT * FROM place WHERE placeid = '25 ', I get a record.
Any ideas? thank!
EDIT:
Table structure:
SQL query: describe place;
Rows: 9
Field Type Null Key Default Extra
title text NO NULL
description text NO NULL
latitude float NO NULL
longitude float NO NULL
image text NO NULL
placeid int(11) NO PRI NULL
country text YES NULL
city text YES NULL
address text YES NULL
source
share