热选择数据并在同一时间更新它

编程入门 行业动态 更新时间:2024-10-11 15:24:34
本文介绍了热选择数据并在同一时间更新它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

热选择数据并在同一时间更新它

本文发布于:2023-11-24 00:30:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623320.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:并在   数据

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!