If Exists Update Else Insert with VB.net (sql parameterised query)

前端 未结 3 1116
灰色年华
灰色年华 2021-01-22 15:55

I\'m hoping to use the following update\\insert method to speed up my application insert\\updates:

UPDATE [Application_Type_Table] 
SET ApplicationType=\'Test Va         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-22 16:32

    I would suggest moving the query to a stored procedure. Queries (especially multi-statement ones) don't really belong hard-coded into one's application IMO. Doing so would also have the bonus of alleviating your problem ;)

提交回复
热议问题