Похожие чаты

Hello. Can any one help me with FullTextSearch in MySqlDatabase

in PHP?
I Have fulltext enable in table Accounts.
Now i want to select username column with fulltext search.

I use this query:
SELECT PName
FROM accounts
WHERE MATCH(PName) AGAINST('fuas');

it should return 3 columns:
fuas
fuas2
fuas3

but it just return:
fuas


Can any one help me?

9 ответов

18 просмотров

SELECT pName FROM accounts WHERE pName LIKE %fu%

🤷‍♂

Taha- Автор вопроса
Ibroh24
SELECT pName FROM accounts WHERE pName LIKE %fu%

And how can I sort best match? for example i have this rows: [fuas12]0 [1fuas11] fuas fuas01 fuas1 it should sort this like this: fuas fuas1 fuas01 [fuas12]0 [1fuas11]

Taha- Автор вопроса
Taha
And how can I sort best match? for example i have...

Full text search should do this attomaticly, but I dont know how can I do that with LIKE query.

Taha
And how can I sort best match? for example i have...

I think the ORDER BY pName ASC will do that for you ie SELECT pName FROM accounts WHERE pName LIKE %fu% ORDER BY pName ASC

Taha- Автор вопроса
Ibroh24
I think the ORDER BY pName ASC will do that for yo...

e'mm... it doesn't help with more big examples. Its what i want exactly do.

Taha- Автор вопроса
Ibroh24
I think the ORDER BY pName ASC will do that for yo...

for example order of this 3 rows with ASCII chars is: fuas fuas01 fuas1 and with full text should be: fuas fuas1 fuas01

Taha
screenshot e'mm... it doesn't help with more big examples. I...

I've not used match() and against() before. But if what you needed is that query that will generate: fuas fuas01... The provided query should do it.

!report

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта