Answer the question
In order to leave comments, you need to log in
How to do extra word search in postgresql?
Good afternoon!
The table has 2 entries:
id, some_name
1, привет мир
2, привет замечательный мир
select * from my_data where to_tsvector(some_name) @@ to_tsquery('привет замечательный мир');
Answer the question
In order to leave comments, you need to log in
replace the word that is not important with the symbol % and the condition should be where field like 'xxx % yyy'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question