将值与mysql中表的所有字段进行比较 [英] compare value with all the fields of a table in mysql

查看:53
本文介绍了将值与mysql中表的所有字段进行比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为 info_acc (id,state,country,zip) 的表,现在我需要将一组关键字与该表的所有字段进行比较,说值是阿拉斯加我需要将其与 id,state,country 进行比较,zip 并与任何文件匹配,然后将选择行.我怎样才能以有效的方式做到这一点?谢谢

I ahve a table called info_acc (id,state,country,zip) now i need to compare a set of keywords with al the fileds of this table say value is Alaska I need to compare this with id,state,country,zip and in match with any filed then row(s) will be selected. How can I do this with efficient way? Thanks

推荐答案

请阅读以下文章:

使用 MySQL 全文搜索

或使用 stackoverflow:

or use stackoverflow:

如何在 MySQL 中实现关键字搜索?

mysql 关键字搜索

这篇关于将值与mysql中表的所有字段进行比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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