PostgreSQL - Full-Text Search
Examine this query:SELECT * FROM docs WHERE text @@ to_tsquery('search');
Assuming text is a text column, what is the issue?
Examine this query:SELECT * FROM docs WHERE text @@ to_tsquery('search');
Assuming text is a text column, what is the issue?
@@ operator requires the left operand to be tsvector.text is a plain text column, not tsvector.text to tsvector using to_tsvector(text) before using @@.tsvector, not text -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions