Não tenho nem palavras para lhe agradecer.

Muitíssimo obrigado!


Euler Taveira de Oliveira-2 wrote:
> 
> Rafael Barbolo wrote:
> 
>> Preciso criar um tipo de consulta que avalie se uma palavra é 90%
>> parecida
>> com outra.
>> Todas as palavras têm o mesmo número de caractéres.
>> 
> Já existe, veja fuzzystrmatch no contrib.
> 
> postgres=# select levenshtein('postgresql', 'pgsql');
>  levenshtein
> -------------
>            5
> (1 registro)
> 
> 
> Ela retorna o tamanho da string que difere. Daí é só fazer o cálculo.
> 
> -- 
>   Euler Taveira de Oliveira
>   http://www.timbira.com/
> 
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Criar-consulta-que-encontre-palavras-parecidas-tf3995936.html#a11353961
Sent from the PostgreSQL - Brasil mailing list archive at Nabble.com.

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a