2017-09-13 10:46 GMT-03:00 <aline.sca@hotmail.com>:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.1/static/queries-with.html
> Description:
>
> Na documentação mostra uma migração do oracle para o postgresql no qual
> utliza a função nativa "instr". Na documentação mostra que esta função
> existe no postgresql, porem quando tento utilizar me retorna erro dizendo
> que nao existe.
>
Aline, esta lista utiliza inglês como língua principal.
Sobre a sua dúvida, a documentação [1] é bem clara quando diz que o
postgres *não* tem tal função mas que você pode criá-la se quiser (há
uma seção [2] com tal implementação em PL/pgSQL).
"Example 42.10 shows how to port a function with OUT parameters and
string manipulation. PostgreSQL does not have a built-in instr
function, but you can create one using a combination of other
functions. In Section 42.12.3 there is a PL/pgSQL implementation of
instr that you can use to make your porting easier."
[1] https://www.postgresql.org/docs/10/static/plpgsql-porting.html
[2] https://www.postgresql.org/docs/10/static/plpgsql-porting.html#plpgsql-porting-appendix
-- Euler Taveira Timbira -
http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs