SóProvas


ID
1664083
Banca
NC-UFPR
Órgão
ITAIPU BINACIONAL
Ano
2015
Provas
Disciplina
Banco de Dados
Assuntos

Sobre PostgreSQL, considere as seguintes afirmativas:

1. ~* faz avaliação não sensível a maiúsculas de expressões regulares.

2. A variante não sensível a maiúsculas do LIKE é chamada de ILIKE.

3. Em um índice criado como UNIQUE, a coluna indexada é case-sensitive.

Assinale a alternativa correta.

Alternativas
Comentários
  • The key word ILIKE can be used instead of LIKE to make the match case-insensitive according to the active locale. This is not in the SQL standard but is a PostgreSQL extension.

    The operator ~ is equivalent to LIKE, and ~* corresponds to ILIKE. All of these operators are PostgreSQL-specific.

    Índice UNIQUE é case sensitive, para fazer um índice que é case insensitive deve-se usar como índice uma função ou escalar - ver referência abaixo.

     

    https://www.postgresql.org/docs/9.3/static/functions-matching.html

    https://www.postgresql.org/docs/9.4/static/indexes-expressional.html

     

    Gabarito: e)