如何读取和检查在数据库列中输入的数字是否小于或大于在文本框中输入的值 [英] how to read and check that number entered in databse column is less or greater than the value entered in textbox to the

查看:94
本文介绍了如何读取和检查在数据库列中输入的数字是否小于或大于在文本框中输入的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想检查数据库列中的值,数据库列值是否大于或小于textbox中输入的值。请帮助我。

hi i want to check the value in database column that the database column value is greater or less from the value entered in textbox.please help me.

推荐答案

您可以使用ADO.net并编写查询以从数据库中获取值并将其分配给一个变量。



创建一个文本框和一个按钮。在文本框和点击按钮中输入数据后,将输入的值与从数据库中获得的变量值进行比较,并根据您的要求进行处理。



请标记为回答它是否有用!!!
You can make use of ADO.net and write a query to get the value from the database and assign it to one variable.

Create a textbox and a button. Once you enter data in textbox and hit button, compare the value entered with the variable value that you got from the database and handle according to your requirement.

Please mark as answer if it is useful!!!


这篇关于如何读取和检查在数据库列中输入的数字是否小于或大于在文本框中输入的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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