Reg:Windowsw表单保存到数据库 [英] Reg:Windowsw form save to database
本文介绍了Reg:Windowsw表单保存到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何给出编码以将保存按钮保存到数据库的按钮
How to give coding to save button for saving data''s to database
推荐答案
在此处寻求完整的代码,不会让您快速找到任何地方. > 请查看 SQL Server入门指南 [
Asking for complete code here, wont get you anywhere fast.
have a look at Getting started with SQL Server Everywhere[^]
问题太大了-您需要更精确地了解您要执行的操作.
您可以:
使用绑定到表的DataAdapter.
使用数据集并对其进行更新.
使用SqlConnection,SqlCommand和ExecuteNonQuery.
还有其他方法.
您正在使用哪种数据库?这会影响它.
我们不能仅仅回答这样一个普遍的问题:这就像在说:你想吃晚饭吗?"给我老婆您得到的答案是食物",尽管准确无误,但并不能帮助您...
That is way too big a question - you need to be more precise about what you are trying to do.
You could:
Use a DataAdapter bound to a table.
Use a DataSet and Update it.
Use SqlConnection, SqlCommand and ExecuteNonQuery.
There are other ways.
What kind of database are you using? That affects it.
We can''t just answer a general question like that: It''s like saying "What do you want for supper?" to my wife. The answer you get is "Food" which, while accurate, is not exactly helpful...
这篇关于Reg:Windowsw表单保存到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文