vb mysql update,使用VB代码更新SQL数据库。

用户寻求使用SQL2000和VB6更新特定记录的方法。目标是找到'学生'表中StudentStatus为'新',RegDate为2001/02/02且StudNo为200144176的记录,然后通过点击'UpdateDatabase'按钮将StudentStatus更新为'旧'。用户需要数据库连接和SQL更新语句的代码示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.

解决方案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.

You can Get it by qrys.....

You can Get it by qrys.....

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

Hi. You will need a connection object and a sql update statement.

Expand|Select|Wrap|Line Numbers

大家好,

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

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

希望我有意义。

解决方案

大家好,

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

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

希望我有道理。

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

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

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

嗨。您将需要一个连接对象和一个sql update语句。

展开 | 选择 | Wrap | 行号

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值