if exists(select * from [sczt] where oid='5209') update [sczt] set zt='2' where oid='5209' else insert into [sczt] (oid,zt) values ('5209','1')