sql server 2008 management studio not checking the syntax of my query
问题 As always, there will be a reasonable explanation for my surprise, but till then.... I have this query delete from Photo where hs_id in (select hs_id from HotelSupplier where id = 142) which executes just fine (later i found out that the entire photo table was empty) but the strange thing: there is no field hs_id in HotelSupplier, it is called hs_key ! So when i execute the last part select hs_id from HotelSupplier where id = 142 separately (select that part of the query with the mouse and