Re: There is a different cast than ::MyOtherType() ?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: There is a different cast than ::MyOtherType() ?
Date: 2007-02-16 14:34:47
Message-ID: 20070216143447.GB13241@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message A. Kretschmer 2007-02-16 14:34:51 Re: There is a different cast than ::MyOtherType() ?
Previous Message Ezequias Rodrigues da Rocha 2007-02-16 12:30:14 There is a different cast than ::MyOtherType() ?