olá pessoal do Script Brasil , estou tentando fazer um select so que dá um erro quando eu vou relacionar as tabelas no "where"
select unif_titulo as "titulo unif",
muni_titulo as "municipio titulo",
leil_codigo as "leilao codigo",
leil_nome as "leilao nome",
leil_dt_leilao as "data leilao"
from fazenda_v1.leilao leil,
fazenda_v1.municipio muni,
fazenda_v1.unidade_federacao unif
where muni.muni_codigo = leil.leil_codigo
and unif.unif_sigla = muni.muni_codigo
and unif_sigla <> 'RR'
order by unif_titulo asc
Ai o Postgres dá a seguinte mensagem
ERRO: operador não existe: text = integer
LINE 10: and unif.unif_sigla = muni.muni_codigo
^
HINT: Nenhum operador corresponde com o nome e o(s) tipo(s) de argumento(s) informados. Você precisa adicionar conversões de tipo explícitas.
Question
Super Fabio
olá pessoal do Script Brasil , estou tentando fazer um select so que dá um erro quando eu vou relacionar as tabelas no "where"
Ai o Postgres dá a seguinte mensagem
ERRO: operador não existe: text = integer
LINE 10: and unif.unif_sigla = muni.muni_codigo
^
HINT: Nenhum operador corresponde com o nome e o(s) tipo(s) de argumento(s) informados. Você precisa adicionar conversões de tipo explícitas.
********** Erro **********
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.