Retornar apenas números

Danilo Silva <[email protected]>
Newsgroups gmane.comp.db.postgresql.brasil
Message-ID <CA+_JcpQzvL=SPrxT--Z-hX8AfYm5yXusFy8J__r0QuwA--Bhpw@mail.gmail.com>
Pessoal,

Tenho um campo do tipo text onde são armazenados letras+números ou somente
números, exemplo: "PT145896ZZ" ou "116485".

Como posso fazer uma consulta para retornar apenas as linhas onde contenham
apenas números, no exemplo acima, queria retornasse apenas "116485".

[]s
Danilo

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.