Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 11th, 2006, 07:39 PM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default FULLTEXT index help

I'm trying to do a MySQL Query but it doesn't work. MySQL version: 4.0.26


When I put only one argument in MATCH, it shows no error but doesn't return anything
Quote:
quote:
SELECT * FROM item WHERE MATCH (nom) against ('Huile');
or
Quote:
quote:SELECT * FROM item WHERE MATCH (nom_en) against ('Huile');
When I put two arguments:
Quote:
quote:SELECT * FROM item WHERE MATCH (nom,nom_en) against ('Huile');
It says: "Can't find FULLTEXT index matching the column list", but both nom and nom_en are FULLTEXT indexed and the table "item" is MyISAM.

Anyone can help? thank you

 
Old June 26th, 2006, 11:47 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

Try:

a) SELECT *, MATCH (nom) AGAINST ('Huile') As nomHuile FROM item;

b) SELECT *, MATCH (nom_em) AGAINST ('Huile') As nom_emHuile FROM item;

c) SELECT *, MATCH (nom, nom_em) AGAINST ('Huile') As nom_nom_emHuile FROM item;

johnm






Similar Threads
Thread Thread Starter Forum Replies Last Post
Index carumuga SQL Server 2000 1 December 31st, 2007 12:42 PM
Fulltext Search Stored Procedure. maulik77 SQL Server 2000 0 December 28th, 2006 11:52 PM
Incorrect syntax near 'FULLTEXT'? Ron Howerton SQL Server 2005 5 August 30th, 2006 03:39 PM
change z-index anshul Javascript How-To 1 July 27th, 2004 03:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.