From: Nilesh Govindarajan <lists@itech7.com>
To: Gianvito Pio <pio.gianvito@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Check type compatibility
Date: Sat, 6 Mar 2010 16:52:12 +0530
Message-ID: <c31975b61003060322k347683f9l4c4f1d40be7b49ea@mail.gmail.com> (raw)
In-Reply-To: <4B9236A8.3070603@gmail.com>
References: <4B9236A8.3070603@gmail.com>
On Sat, Mar 6, 2010 at 4:34 PM, Gianvito Pio <pio.gianvito@gmail.com> wrote:
> Hi all,
> is there a way to check if two attribute are type compatible (for example
> integer and serial, integer and integer, character varying and text, etc..)?
>
> Example:
> IF (compatible (table1.att1, table2.att2)) THEN
> ...
> ELSE
> ...
> END IF;
>
> Thanks
>
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>
Explain in more detail.
--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
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: lists@itech7.com, pio.gianvito@gmail.com
Subject: Re: Check type compatibility
In-Reply-To: <c31975b61003060322k347683f9l4c4f1d40be7b49ea@mail.gmail.com>
* 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