Re: Casting numeric to text
От | Ross J. Reedstrom |
---|---|
Тема | Re: Casting numeric to text |
Дата | |
Msg-id | 20010409112651.A29792@rice.edu обсуждение исходный текст |
Ответ на | Re: Casting numeric to text (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: Casting numeric to text
|
Список | pgsql-sql |
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. :: may go away in the distant > future to make room for the SQL feature that is supposed to use ::. (It > escapes me at the moment what that was.) 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. But Peter's answer's still correct: CAST( <value> AS <type> ) is SQL standard, '::' is not. Ross
В списке pgsql-sql по дате отправления: