如何在数据库中自动减少值? [英] how to reduace the value automatically in the database??

查看:96
本文介绍了如何在数据库中自动减少值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我知道最好的开发者都在这里......所以, 我在这里发布我的问题。

hi guys,i know the best developers are present here..so,  m posting my question here.

我的问题是:

我有一个工人数据库,其中存储了一些工人。客户将来找工人.i使用gridview来显示那个类别的workers.i在gridview中使用了复选框。当客户选中复选框时,这意味着当他选中复选框并点击时他想要那个worker.i
想要的工作人员应该自动将状态更改为false的按钮。

i have a worker database where some worker are stored.customer will come and find for workers.i have used a gridview to show a list of that category of workers.i have used checkbox in gridview.when customer check the checkbox,it means he want that worker.i want when he check the checkbox and click on the button the worker should automatically changed his status to false.

实际上在工作人员数据库中有列名为bit type的状态。最初所有条目都为true,表示当状态变为false时工作人员可用从true开始,gridview将不会再显示该worker。我已经设置了所有内容。

actually in worker database there is column named status of bit type.initially all entry are true which shows workers are available when status gets false from true,gridview will not show that worker again.i have setup everything.

我有一个问题就是如何在database.it中自动将true更改为false可以在php中轻松完成但我不知道在asp.net中的C#.. plz帮助我

i have a problem in just how to automatically change true to false in database.it can be done easily in php but i don't know in asp.net in C#..plz help me

任何类型的帮助都将不胜感激。

any type of help will be appreciated.

谢谢你

最好的问候

sunil dhanerwal

sunil dhanerwal

推荐答案

你好  Sunil,  

感谢您的发帖!我建议您在MS论坛中发帖提问,

Microsoft Developer Network >
论坛主页
> Windows窗体数据控件和数据绑定

这篇关于如何在数据库中自动减少值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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