看板 Database 關於我們 聯絡資訊
DBMS:DB2 SQL: update db.t1 set t1.f1 = ?, t1.f2 = ? where (t1.f0, t1.f1, t1.f2) in ( select B.f0, B.f1, B.f2 from db.t2 as A inner join db.t2 as B on ............... where ............... ) 問題:我想更新t1的f1跟f2,但要更新的內容是where條件裡面A的欄位A.f1與A.f2, 想請問是否能夠建一個view去存where裡面的select結果? 或是可以用像是from或join的方式呢?? 先謝謝回答囉:)。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.192.149.85