搜索数据库中的特定记录 [英] Searching particular records in a database

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

问题描述

Hie guyz我正在开发抵押管理应用程序,我想提供搜索客户的功能,例如,如果用户键入"thomas",程序将列出所有以名称字段中显示"T",并在列表框中显示它们,我正在使用的数据库是SQL Server,而我是VB.NET的新用户,并且我不想使用存储过程.

Hie guyz i''m developing a mortgage management application i wuld like to provide a functionality for searching clients I wuld like the to do this for example if the user typed "thomas" the program would list all the records begining with "T" in the field for names & display them in a list box the database i''m using is SQL Server and i''m new to VB.NET & I don''t want to use stored procedures

推荐答案

您可以通过两种方式进行.

1.数据库端
SQL Server:条件WHERE子句(用于过滤器的过滤器) [ ^ ]

2.数据源端
使用过滤器过滤数据表 [使用DataView筛选数据表 [ SQL Server-LIKE [
You can do that in two way.

1.Database side
SQL Server: Conditional WHERE clause (Filter for a Filter) [^]

2.Datasource side
Use Filter to filter Data Table[^]
Use DataView to filter data table[^]

Finally this is important one that you want
SQL Server - LIKE[^]


您可以从类似的内容开始 [ ^ ].


这篇关于搜索数据库中的特定记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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