Unstoppable Domains

MySQL FullText Searching Help

Spaceship Spaceship
Watch

cx409

Established Member
Impact
2
I have a table, with a fulltext index (username) already added...but, when I issue this command with the code, nothing shows up...

Here's the table (or part of it):

User_id > Username
1 > SYSadmin
2 > cx409

And the query...

Code:
select username from some_table where match (username) against ('SYS')

I've done this alot of times, but it'll only return rows that's an exact match. Does fulltext searching only work with multiple words or......

PS: It doesn't give me any errors, just Empty set.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
use the following

select field_name from table_name where field_name like '%string%';


replace table_name, field_name and string by your choice.
 
0
•••
Ahhh...thanks. Much appreciated.

:P I always knew like was powerful, just didn't know how it worked.
 
0
•••
like is alot slwoer than full text searching

if you want to do part searches you need to use boolean syntax

so if you was searching for "microsoft" you would put this "micro*"

or if you wanted to search for microsoft and office you would use this

"micro* AND office"
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back