select t.*, t.rowid from a_gys t,mms_gys b where t.gys=b.gysmc for update
select * from a_gys t where not exists (select * from mms_gys b where t.gys=b.gysmc)
select t.*, t.rowid from a_gys t,mms_gys b where t.gys=b.gysmc for update
select * from a_gys t where not exists (select * from mms_gys b where t.gys=b.gysmc)