Olá,

Pelo que dá para ver pelo erro, parece que você já tem um seqüência com este
mesmo nome. Para criar objetos temporários com o mesmo nome tem que ser numa
outra seção.

[]s

2007/11/28, Jacques Nogueira dos Santos <[EMAIL PROTECTED]>:
>
>
> I have to show for each register the number of the row.So a thought the
> following code:
>
> create temp sequence rownum;
> select nextval('rownum') as rownum
>      , trim(lower(mneu_for)) as mneu_for
>      , trim(nome_for) as nome_for
> from sbd95.fornec;
>
>
>
> When I execute the code it´s run ok.So, I go public schema to see if it´s
> there and it´s not.Then I tried to execute again,
> and the DataBase ruturned me this message error: "ERROR: relation "rownum"
> already exists
> SQL state: 42P07"
>
>
> What´s happen?
>
>
>
>
>
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>
>
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a