ComeçarComece de graça

Searching an ARRAY with @>

The contains operator @> operator is alternative syntax to the ANY function and matches data in an ARRAY using the following syntax.

WHERE array_name @> ARRAY['search text'] :: type[]

So let's practice using this operator in the exercise.

Este exercício faz parte do curso

Functions for Manipulating Data in PostgreSQL

Ver curso

Instruções do exercício

  • Use the contains operator to match the text Deleted Scenes in the special_features column.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

SELECT 
  title, 
  special_features 
FROM film 
-- Filter where special_features contains 'Deleted Scenes'
WHERE ___ ___ ARRAY['Deleted Scenes'];
Editar e executar o código