Re: [SQL] Casting numeric to text

2001-04-09 Thread Ross J. Reedstrom
On Mon, Apr 09, 2001 at 06:53:13PM +0200, Peter Eisentraut wrote: > Ross J. Reedstrom writes: > > > FYI, I can't find an occurance of '::' that's not part of '::=' in either > > SQL1992.txt or the ansi-iso-[sql]-1999.txt files I've got. > > SQL 1999 6.12 > > ::= > [ ] > Ah, right: M

Re: [SQL] Casting numeric to text

2001-04-09 Thread Peter Eisentraut
Ross J. Reedstrom writes: > FYI, I can't find an occurance of '::' that's not part of '::=' in either > SQL1992.txt or the ansi-iso-[sql]-1999.txt files I've got. SQL 1999 6.12 ::= [ ] That syntax even makes sense... -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/pe

Re: [SQL] Casting numeric to text

2001-04-09 Thread Ross J. Reedstrom
On Mon, Apr 09, 2001 at 05:57:45PM +0200, Peter Eisentraut wrote: > Cedar Cox writes: > > > When would one want to use cast()? What is the difference between cast > > and :: ? After a quick look in the documentation I couldn't find > > anything.. > > cast() is SQL, :: is traditional Postgres.

Re: [SQL] Casting numeric to text

2001-04-09 Thread Peter Eisentraut
Cedar Cox writes: > When would one want to use cast()? What is the difference between cast > and :: ? After a quick look in the documentation I couldn't find > anything.. cast() is SQL, :: is traditional Postgres. :: may go away in the distant future to make room for the SQL feature that is s

Re: [SQL] Casting numeric to text

2001-04-08 Thread Cedar Cox
On Sun, 8 Apr 2001, Peter Eisentraut wrote: > Hans-Jürgen Schönig writes: > > > Is there any possibility to cast numeric to text in Postgres 7.0.3? > > > > shop=# select cast(price as text) from products; > > ERROR: Cannot cast type 'numeric' to 'text' > > Use the to_char() function. When w

Re: [SQL] Casting numeric to text

2001-04-08 Thread Peter Eisentraut
Hans-Jürgen Schönig writes: > Is there any possibility to cast numeric to text in Postgres 7.0.3? > > shop=# select cast(price as text) from products; > ERROR: Cannot cast type 'numeric' to 'text' Use the to_char() function. -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter