Re: There is a different cast than ::MyOtherType() ? - Mailing list pgsql-sql

From Alvaro Herrera
Subject Re: There is a different cast than ::MyOtherType() ?
Date
Msg-id 20070216143447.GB13241@alvh.no-ip.org
Whole thread Raw
In response to There is a different cast than ::MyOtherType() ?  ("Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>)
List 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


pgsql-sql by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: There is a different cast than ::MyOtherType() ?
Next
From: chrisj
Date:
Subject: Re: can someone explain confusing array indexing nomenclature