摘要:
有下面两个表:将表tab1中id值与和表tab2中id值相同的行的val更新为tab2中val的值. select * from tab1; select * from tab2 最容易犯的错误是:update tab1 set val=(select val from tab2 where tab 阅读全文
摘要:
select t.*, t.rowid from a_gys t,mms_gys b where t.gys=b.gysmc for updateselect * from a_gys t where not exists (select * from mms_gys b where t.gys=b... 阅读全文