C#技术百科
问问你的心你有没有信心 做事情要专一坚定,执着

一句话解决更新和插入的问题

if exists(select 1 from Pat_ResultScores where SID=:SID) update Pat_ResultScores set Scores=:Scores,UserY=:UserY,UserP=:UserP where SID=:SID else insert into Pat_ResultScores(SID,Scores,UserY,UserP) values(:SID,:Scores,:UserY,:UserP)

posted on 2010-08-27 11:19  王德田  阅读(199)  评论(0编辑  收藏  举报