Table with differerent Data Types - Mailing list pgsql-general

From xaviergxf
Subject Table with differerent Data Types
Date
Msg-id 6e02b881-50b2-4a1a-a500-5a9bb1f85200@m44g2000hsc.googlegroups.com
Whole thread Raw
Responses Re: Table with differerent Data Types  (Klint Gore <kgore4@une.edu.au>)
List pgsql-general
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?


Thanks a lot

pgsql-general by date:

Previous
From: "PontoSI - Consultoria, Informática e Serviços LDA"
Date:
Subject: error connecting to database: could not open relation
Next
From: cgastrell@gmail.com
Date:
Subject: Re: Trouble running PostgreSQL server / Server must be started under certain locale.