比较程序和数据库中的数据 [英] compare data from program to database

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

问题描述

嗨 我有问题,我需要使用C#中的som代码来完成此过程.

当用户在文本框中输入程序时,我有一个表格需要比较

比较数据库中该用户的输入方式,是否在数据库中,如果否

清理此文本框后,将显示来自用户的数据库中的最后数据

感谢我的帮助.

解决方案

我认为您需要在数据库中创建一个存储过程来存储数据.
您创建一个数据库存储过程,该过程将评估每个数据库条目,并在验证后将其存储.使用存储的proc根据输入的数据返回成功/失败.


hi i''m be problem i need som code in C# for this process.

i''ve a form how i need compare when user enter in text box, program

compare in database how this user entered ,is be in database or no if

be show last data from database from user after that clean this textbox

thanks for help me

解决方案

I think you need to create a stored procedure in the database to store data.
You create a database stored proc which will evaluate each database entries and can store it after it is validated. Use the stored proc to return back the success / failure based on the data feed in.


这篇关于比较程序和数据库中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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