Forum Moderators: coopster
ALTER TABLE articles ADD FULLTEXT(body, title);
I was wondering once I've altered my table for fulltext searching, can I still use that table for REGULAR searching using for example, "SELECT * FROM articles WHERE body LIKE '%$keyword%'";?
I currently have a website that searches through the articles table using regular LIKE statements. And I am working on a new website, but i would like to try out fulltext searching with the same articles table on that new site. Since I have to alter the mysql table in order to do fulltext searching, I need to ensure that this alteration would still allow searching through regular LIKE statements.
I did a testing and I think the answer is "YES, it would still work on regular LIKE statements", but I would like to make sure from experts here. Thanks!
Anyway, a little elaboration. What you are doing when you create a fulltext index is just that, creating an index, not altering the original contents of the column in any way. It creates a new access method, but it doesn't get rid of anything old.
See
[onlamp.com...]