Re: sequences what does ::text mean ? - Mailing list pgsql-novice

From Ewald Geschwinde
Subject Re: sequences what does ::text mean ?
Date
Msg-id 3D22CC5E.4060409@geschwinde.net
Whole thread Raw
In response to sequences what does ::text mean ?  (Henk Schets <henk@poppunt.be>)
Responses Re: sequences what does ::text mean ?
Re: sequences what does ::text mean ?
List pgsql-novice
Henk Schets wrote:

>Hi,
>
>In a table I have as a default value nextval('seq_auteurs').  What's the difference with nextval('seq_auteurs'::text)
?
>
>Henk
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
>
>
>
>
>
The difference ist nextval('seq_autheurs') you get an integer back and
with the second one it casts the integer to text and returns a text value

Ewald






pgsql-novice by date:

Previous
From: Henk Schets
Date:
Subject: sequences what does ::text mean ?
Next
From: Oliver Elphick
Date:
Subject: Re: sequences what does ::text mean ?