PostgreSQL - Full-Text Search
Given the table documents with a content column of type tsvector, what will this query return?SELECT id FROM documents WHERE content @@ to_tsquery('cat & dog');
Given the table documents with a content column of type tsvector, what will this query return?SELECT id FROM documents WHERE content @@ to_tsquery('cat & dog');
'cat & dog', which means both terms must be present.@@ operator returns true if the tsvector matches the tsquery conditions.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions