pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: There is a different cast than ::MyOtherType() ?
Date: Fri, 16 Feb 2007 11:34:47 -0300
Message-ID: <20070216143447.GB13241@alvh.no-ip.org> (raw)
In-Reply-To: <55c095e90702160430r202573dcy2a7733420824ea96@mail.gmail.com>
References: <55c095e90702160430r202573dcy2a7733420824ea96@mail.gmail.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



view thread (3+ messages)  latest in thread

Message-ID: <20070216143447.GB13241@alvh.no-ip.org>
Permalink:  ../20070216143447.GB13241@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20070216143447.GB13241@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: alvherre@commandprompt.com, ezequias.rocha@gmail.com
  Subject: Re: There is a different cast than ::MyOtherType() ?
  In-Reply-To: <20070216143447.GB13241@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox