From: | xaviergxf <xaviergxf(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Table with differerent Data Types |
Date: | 2008-04-24 12:07:35 |
Message-ID: | f82fde76-14cf-4ac4-9cae-41ace4fd4f07@l42g2000hsc.googlegroups.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
hi, i haven´t found the explication about my problem...
On 24 abr, 03:04, kgo(dot)(dot)(dot)(at)une(dot)edu(dot)au (Klint Gore) wrote:
> xaviergxf wrote:
> > Hi,
>
> > I´m trying to do the follow: create a table like:
> > create table t(
> > cod serial,
> > data_type char(10),
> > value ???
> > );
>
> > I would like to do the follow the table would tell me what data type
> > its the value. For instance:
>
> > insert into t values(1, 'Integer', 12);
> > insert into t values(2, 'String', 'test');
> > insert into t values(3, 'Float', 1.23);
>
> > How can i do that? Its that possible? How Can i solve this problem?
>
> seehttp://www.varlena.com/varlena/GeneralBits/110.php
>
> klint.
>
> --
> Klint Gore
> Database Manager
> Sheep CRC
> A.G.B.U.
> University of New England
> Armidale NSW 2350
>
> Ph: 02 6773 3789
> Fax: 02 6773 3266
> EMail: kgo(dot)(dot)(dot)(at)une(dot)edu(dot)au
>
> --
> Sent via pgsql-general mailing list (pgsql-gene(dot)(dot)(dot)(at)postgresql(dot)org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general- Ocultar texto entre aspas -
>
> - Mostrar texto entre aspas -
From | Date | Subject | |
---|---|---|---|
Next Message | Emiliano Moscato | 2008-04-24 12:44:56 | Re: Stored procedures in C |
Previous Message | xaviergxf | 2008-04-24 12:04:38 | Postgresql installation - cannot initdb 1 |