这是查询:
SELECT title from prod_table WHERE MATCH(title) AGAINST ('-Gears Of War' IN BOOLEAN MODE) limit 30;
该表肯定已填充,这是架构
SQL query: explain prod_table;
Rows: 22
Field Type Null Key Default Extra
PRprodinfo_id int(11) NO PRI NULL auto_increment
PRid varchar(64) NO UNI NULL
main_category varchar(64) YES NULL
title varchar(128)NO MUL NULL
agegroup varchar(16) YES NULL
author varchar(128)YES NULL
sex varchar(8) YES NULL
actors varchar(256)YES NULL
platform varchar(64) YES NULL
artist varchar(128)YES NULL
genre varchar(128)YES NULL
description text YES NULL
manuf varchar(128)YES NULL
manufID varchar(64) YES NULL
prodcat varchar(128)YES NULL
prodcatID int(11) YES NULL
userrating decimal(1,1)NO NULL
profrating decimal(1,1)NO NULL
lowprice decimal(10,2) NO NULL
highprice decimal(10,2) NO NULL
imageURL varchar(128) NO NULL
dateadded timestamp NO CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
也试过:
SELECT title from PRprodINFO WHERE MATCH(title) AGAINST ("-'Gears Of War'" IN BOOLEAN MODE) limit 30;
和
SELECT title from PRprodINFO WHERE MATCH(title) AGAINST ("'-Gears Of War'" IN BOOLEAN MODE) limit 30;
但他们有点抵消自己,一些结果是:
'Gears and Gear Cutting Workshop Practice'
'Gears of War 2 Signature Series Guide Bradygames Signature Guides'
'Gears of War 2 Last Stand Edition Guide Bradygames Signature'
'Cream Disraeli Gears Classic Albums DVD RETAIL BUT NOT AVAILABLE TO RENT'
'Gears of War 2 Limited Edition'
'Gears Of War'
'Gears of War 2'
'Gears of War Triple Pack'
'Gears of War 2 Game of the Year Edition'
'Gears of War 3 Limited Edition'
'Gears of War 3'
这正是我不想要的
我很难过 - 此外,在标题字段上有一个 FULLTEXT 索引。
谢谢
达伦