如何执行多关键字搜索

编程入门 行业动态 更新时间:2024-10-28 02:35:14
本文介绍了如何执行多关键字搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨... 我试图执行搜索操作... 但我想知道如何从多个关键字中搜索特定名称... 有可能吗?

hi... i have tried to perform the search operation... but i want to know how to search a particular name from multiple keywords... is it possible? can u give me an suggestion to do this operation.?

推荐答案

创建一个包含搜索词的临时表,然后对表/列进行联接( s)您正在搜索. Create a temporary table that contains the search words, and then do a join on the table/column(s) you''re searching.

您始终可以在查询级别进行此搜索. 只需使用IN子句在Where中搜索名称. select * from table where name in (name1,name2) You could always do this search at the query level. Just search for a the names within the Where using an IN clause. select * from table where name in (name1,name2)

您也可以使用进行搜索 you can also search using, select * from tablename where columnname in (%value1%,%value2%,....);

谢谢 -amit.

thanks -amit.

更多推荐

如何执行多关键字搜索

本文发布于:2023-11-24 15:27:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625780.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:关键字搜索

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!