本文介绍了如何创建更新帐户的逻辑..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

helloo ,,,

我在数据库中有一张表...但是,如果用户想从前端更新他的电话号码,那么我该怎么想....我该怎么做这个
什么对我有用的代码
帮帮我吗?

谢谢
Gaurang R.

helloo,,,

i have one table in database ...but but if user want to update his Phone number from front end ..then what i have to think ....how can i make this
what is useful code for me
help me ??

thanks
Gaurang R.

推荐答案

UPDATE [TableName] SET phone = @phone WHERE ID = @id



@phone@id将是您的参数.

然后从该查询中研究ADO.NET或LINQ.这将帮助您继续进行下去.
这是让您入门的链接.

使用C#读取,插入,更新和删除简单的ADO.NET数据库. [ ^ ]

问候,
爱德华



@phone and @id would be your parameters here.

Then from this query, study ADO.NET or LINQ. This will help you proceed onto this.
Here is the link to get you started.

Simple ADO.NET Database Read, Insert, Update and Delete using C#.[^]

Regards,
Eduard


这篇关于如何创建更新帐户的逻辑..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 09:04