开发者

c # compare with database table's columns values [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_StackOverflow社区 Closed 11 years ago.

how to compare textbox value with column's each value


Since you put very little effort into your question you only will get generalities:

Select the data you want to compare from your database. Use a loop to iterate over the returned records, and compare the value of the column in question to the value in your textbox.

However, if you just want to know if that value is in the database, you can use a where clause to compare your textbox's value to the column in question. You may also want to look at like.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜