我有這個(工作)選擇statment:從選擇要更新的Oracle SQL
select * from memberships where MEMBERSHIP_TYPE = 'ZZZ' and inactive_date is null
and name_id in (select name_id from name where history_yn = 'N')
,但現在我想改變它,所以這將是一個更新語句,:
update name
set history_yn = 'Y'
IN (select * from memberships where MEMBERSHIP_TYPE = 'ZZZ' and inactive_date is null)
,但我收到ora-00933錯誤。你能提供這方面的建議嗎?
什麼是memberships'和'name''之間的關係。或者,表格的結構和它們之間的關係是什麼? – GolezTrol 2012-03-21 11:03:02