【发布时间】:2012-04-01 18:42:22
【问题描述】:
我有一张包含数百万条记录的表,例如:
id Name Age
1 john 23
2 peter 27
3 moses 23
.... ....
像这样使用 MySQL MATCH AGAINST 查询。我想选择第三行 姓名摩西和年龄23。
我可以使用普通查询,例如:
select from table where name='moses' && age ='23'
但这需要很多时间。 所以,我的朋友告诉我使用匹配查询。 谁能告诉我我们是否可以在 Match Against Query 中做到这一点及其优势?
我们如何使用MATCH() ... AGAINST 语法编写上述查询?
【问题讨论】:
-
stackoverflow 中已经询问过了。请参考以下链接:stackoverflow.com/questions/6304138/mysql-match-againststackoverflow.com/questions/5366840/mysql-match-against
标签: mysql match match-against