一句話解決更新和插入的問題
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
sanmao 閱讀(88)
評論(0) 編輯 收藏