从数据库检索记录 [英] Retrieve record from database

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

问题描述

如何从数据库中检索特定记录?

我正在开发一种工具,用于搜索记录中的关键字并显示记录数.我使用列表控件,并使用列表框显示特定记录和相关信息.

每当执行时,我都会在列表框中显示第一条记录,而我希望当我单击特定记录时,我应该在屏幕上获得相关信息.

请帮帮我..............

How to retrieve particular record from a database?

I''m developing a tool for searching records for a keyword and for displaying number of record. I''m using List control and for display the particular record and related information I''m using list box.

Whenever I execute I get the first record displayed in list box rather I want that when I click on particular record I should get the related information on screen.

Please help me out..............

推荐答案

如果您使用的是SQL Server.只需使用"selct"命令像从[表名]中选择*,其中emp_name像a%.
If you are using SQL server .You can simply use "selct" command like select * from [table name] where emp_name like a%.


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

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