Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Table with diff...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 15375 of 17602
Post > Topic >>

Table with differerent Data Types

by xaviergxf <xaviergxf@[EMAIL PROTECTED] > Apr 23, 2008 at 12:40 PM

Hi,


   I=B4m 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
 




 3 Posts in Topic:
Table with differerent Data Types
xaviergxf <xaviergxf@[  2008-04-23 12:40:15 
Re: Table with differerent Data Types
kgore4@[EMAIL PROTECTED]   2008-04-24 16:04:21 
Re: Table with differerent Data Types
xaviergxf <xaviergxf@[  2008-04-24 05:07:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 18:48:03 CST 2008.