本文介绍了热选择数据并在同一时间更新它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hello dears i devlope一个Web应用程序,我拥有拥有许多表的数据库,我想从一个表中获取数据并同时更新返回值...(当选择行更新时) sepcifc字段到新值)这是我的意思.........任何想法这样做...我认为必须使用存储的prosdure来做到这一点,但如何...我使用命令类型文本未存储如果我必须使用存储过程,你可以告诉我一个例子
hello dears i devlope a web application and i have database that own many tables and i want to get data from one table and update return value in the same time ...( when select row update sepcifc field to new value ) that is i mean ......... any idea for doing it ... i think must to using stored prosdure to do this but how ... i work with command type text not stored and if i must to use stored procedure can you tell me an example
推荐答案尝试阅读这个链接。它可能对你有帮助。 C#SqlClient [ ^ ] 如何:使用C#和SELECT INSERT UPDATE连接到SQL? [ ^ ] SQL插入/更新/使用C#选择/删除 [ ^ ] :) Try reading this links. It might help you. C# SqlClient[^] How To: Connect to SQL using C# and SELECT INSERT UPDATE ?[^] SQL Insert/Update/Select/Delete using C#[^] :)
使用合并声明 您可以在单个语句中执行插入,更新或删除操作使用MERGE语句 Use Merge Statement you can perform insert, update, or delete operations in a single statement using the MERGE statement
更多推荐
热选择数据并在同一时间更新它
发布评论