一句話解決更新和插入的問題

          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)


          文章來源:http://www.cnblogs.com/wangdetian168/archive/2010/08/27/1809929.html
          posted on 2010-09-28 10:47 sanmao 閱讀(77) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 牟定县| 洪湖市| 苍梧县| 尚义县| 沧州市| 沁源县| 崇州市| 东明县| 班玛县| 昌黎县| 高密市| 新津县| 剑川县| 清涧县| 宽甸| 任丘市| 榕江县| 革吉县| 霍林郭勒市| 琼结县| 依兰县| 明水县| 临沭县| 博兴县| 新河县| 阿拉尔市| 赫章县| 扶沟县| 泉州市| 保德县| 象州县| 万载县| 准格尔旗| 璧山县| 平湖市| 肇庆市| 南和县| 六盘水市| 承德市| 资溪县| 宜都市|