使用VB代码更新SQL数据库。 [英] Update SQL database using VB code.

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

问题描述

大家好,


我想从学生中获取所有记录。数据库表,其中StudentStatus =''新''''。查找特定的RegDate(2001/02/02),StudNo(200144176)并通过单击命令按钮(UpdateDatabase)将其'StudentStatus更新为?ld )。我正在使用SQL2000(Windows身份验证)。


请告诉我如何从数据库连接或检索这些信息。


希望我有意义。

Hello everyone,

I want to get all records from the "Student" database table where StudentStatus = ''New'''' .Find a particular RegDate (2001/02/02) , StudNo ( 200144176) and update it''s StudentStatus to "?ld", by clicking a command button ( UpdateDatabase). I''m using SQL2000( Windows Authentication).

and please show me how to connect or retreive that information from the database .

Hope I make sense.

推荐答案


大家好,


我想要从学生中获取所有记录。数据库表,其中StudentStatus =''新''''。查找特定的RegDate(2001/02/02),StudNo(200144176)并通过单击命令按钮(UpdateDatabase)将其'StudentStatus更新为?ld )。我正在使用SQL2000(Windows身份验证)。


请告诉我如何从数据库连接或检索这些信息。


希望我有道理。
Hello everyone,

I want to get all records from the "Student" database table where StudentStatus = ''New'''' .Find a particular RegDate (2001/02/02) , StudNo ( 200144176) and update it''s StudentStatus to "?ld", by clicking a command button ( UpdateDatabase). I''m using SQL2000( Windows Authentication).

and please show me how to connect or retreive that information from the database .

Hope I make sense.



你可以通过qrys获得.....


You can Get it by qrys.....



你可以通过qrys获得它.....
You can Get it by qrys.....



是的,但是我该怎么做。我想设计一个程序来为我更新数据库,并将Status从new更改为old。我需要知道我应该在更新命令按钮上写什么,你能告诉我代码吗?我正在使用SQL2005和vb6


Yes, but how do I do that. I want to design program that is going to update the database for me and change the Status from new to old. I need to know what I should write on the Update command button, can you please show me the code. I''m using SQL2005 and vb6


嗨。您将需要一个连接对象和一个sql update语句。
Hi. You will need a connection object and a sql update statement.
展开 | 选择 | Wrap | 行号


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

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