从数据库中搜索单词或其他输入. [英] Searching a word or some other input from database.

查看:126
本文介绍了从数据库中搜索单词或其他输入.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我想从文本框中输入内容,然后它将在文本框中显示带有给定关键字或其他关键字的所有相关主题...该怎么办?

最好的问候,
Golam kibria

Hi All,
I want to take a input from textbox and then it will show all related topics with my given keywords or others in the textbox...How can I do this?

Best Regards,
Golam kibria

推荐答案

您可以通过创建存储过程来包装sql查询的执行过程来做到这一点.此过程应将用户的关键字作为参数,然后返回从sql查询派生的适当结果.

注意:您应该先尝试弄清楚作业,然后发布有关该代码及其出问题的特定问题.我们可以以简洁明了的方式回答.否则,您会得到上述正确的答案,但我非常怀疑这是否会对您有所帮助.
You can do that by creating a stored procedure to wrap the execution of a sql query. This procedure should take the user''s keywords as arguments and then return the appropriate results derived from the sql query.

Note: You should try and figure out your homework first, then post specific questions about that code and where it went wrong. That we can answer in a clean and concise manner. Otherwise you get an answer as above which is correct, but I very much doubt it will help you.


帮助链接以了解有关存储过程的更多信息

请在该主题下找到以下帮助主题
我在存储过程中从哪里开始? [ ^ ]
Help link to learn more about store procedures

Please find the following help topics on that
where am i start in Stored Procedure?[^]


这篇关于从数据库中搜索单词或其他输入.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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