求一条SQL2000更新记录的语句对test表进行更新操作,当userid记录不存在的时候进行插入操作,存在的时候更新纪录[解决办法]
if exists(select 1 from tb where ...)updateelseinsert