1
我想基於@擺脫子查詢做更新。更新上課,基於擺脫子查詢
select max([email protected]) from Customers where @rid = #27:1074
返回結果#14:112
當我嘗試波紋管代碼,執行是成功的,但沒有記錄更新
UPDATE Visits Set exit_at = sysdate() where @rid = (select max([email protected]) from Customers where @rid = #27:1074)
但是,如果我做
UPDATE Visits Set exit_at = sysdate() where @rid = #14:112
記錄更新並顯示預期結果。
我在忽略什麼?