更新查询未显示所需结果

时间:2015-05-30 05:47:28

标签: mysql

问题:

我正在尝试更新一个有四个外键的表。我写的查询没有任何错误,但它显示zero row affected

查询:

UPDATE `NEXG`.`homes_listing` SET `property_id` = '$propertyid', `title` = '$title', `desc` = '$desc', `display_address` = '$displayaddress', `no_of_beds` = '$noOfBeds', `no_of_baths` = '$noOfPaths', `super_area` = '$superArea', `constructed_area` = '$constructedarea',`sold_flag` = '1', `notification_flag` = '1' where relationship_id=(select id from relationship,users where relationship.id=users.relationship_id limit 1) and property_type=(select id from property_type order by id desc limit 1)and possesion_status=(select id from possession_status order by id desc limit 1) and unit_of_area=(select id from unit_of_area order by id desc limit 1)order by `property_id` desc limit 1 

错误: 它没有给出任何错误。但也没有更新我的表。

0 个答案:

没有答案