更新SQL数据库中的特定数据中心 [英] Update specific datacells within SQL database

查看:82
本文介绍了更新SQL数据库中的特定数据中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我使用的是aspx / vb.net



基本上我把'我有一个网格视图,我在每行数据上都有一个按钮,它会调出一个用户可以编辑所选特定数据的模态,这很好用。但是,我不能让它更新现有数据,而是创建一个新的数据行。



我尝试过:



我尝试了多种不同的东西,例如



stSQL =UPDATE x set = X = x

Hi there,

I am using aspx / vb.net

Basically put I've got a grid view, I've got a button on each line of data that brings up a modal where the user can edit the specific data selected, this works fine. However i cannot get it to update the existing data, instead it creates a new line of data.

What I have tried:

I've tried multiple different things, for instance

stSQL = "UPDATE x set = X = " x "

推荐答案

该SQL无效:

That SQL is not valid:
stSQL = "UPDATE MyTable SET MyColumn = NewValue WHERE RowIdentifier = IdentityValue"


这篇关于更新SQL数据库中的特定数据中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆