There is a different cast than ::MyOtherType() ?
There is a different cast than ::MyOtherType() ?
От:
"Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>
Дата:
Hi list,
My Delphi app does not suport this kind of cast:
Select id, desc::Varchar(50) from myTable
I don't know if it is a odbc problem or a Delphi problem (or a BDE problem).
Even though I would like to try another cast.
Does anyone is avaliable to help me ?
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Atenciosamente (Sincerely)
Ezequias Rodrigues da Rocha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/
Re: There is a different cast than ::MyOtherType() ?
От:
"A. Kretschmer" <andreas.kretschmer@schollglas.com>
Дата:
am Fri, dem 16.02.2007, um 9:30:14 -0300 mailte Ezequias Rodrigues da Rocha folgendes: > Hi list, > > My Delphi app does not suport this kind of cast: > > Select id, desc::Varchar(50) from myTable This is PG-only-style, the spec is: select id, cast(desc as varchar(50)) from mytable; But i'm not sure if 'desc' is a reserved key-word. Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
Re: There is a different cast than ::MyOtherType() ?
От:
Alvaro Herrera <alvherre@commandprompt.com>
Дата:
Ezequias Rodrigues da Rocha escribió: > Hi list, > > My Delphi app does not suport this kind of cast: > > Select id, desc::Varchar(50) from myTable Try select id, cast(desc as varchar(50)) from yourTable -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support