0
我有3個表ticket_addresses,票據,['2014nosec add']。我想更新這個ticket_addresses表,但不幸的是我已經運行了這個查詢,它更新了整個表的ta_address_2列'。'。 我的疑問是我的查詢是錯誤的,因爲從表['2014nosec add']與更新表不同,它沒有ta-address-2列應該給我一個錯誤,因爲從表中不是列表。
有沒有辦法回滾更新查詢,因爲我沒有用它作爲事務。我正在使用sql server managament studio。更新錯誤和回滾事務
update
ticket_addresses set ta_address_2 = '.'
FROM ['2014nosec add'] inner join tickets ------> I think this is wrong here.. it should be ticket_addresses table(right)
on ['2014nosec add'].[PCN] = tickets.t_reference
where ta_address_2 = ''
and ta_address_1 <> ' ' and t_camera_ticket = '-1'
and
convert (datetime,t_date_time_issued,101) between convert(datetime,'2014/04/15',101) and convert (datetime,'2014/06/06',101)