db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Sp." <patspringer2...@gmail.com>
Subject Generic data types
Date Thu, 27 Sep 2007 14:23:10 GMT

Hello,

I am developing a java application that can store and retrieve data  defined
by the following schema


CREATE TABLE  Tag as (
	TagGroup varchar(100),
	TagValue varchar(64), //which data type???
);

However, in practice, the 'TagValue' may be of different data types (float,
varchar, int,  etc). The right data type is known only at runtime.

My question is, how to declare 'TagValue' so it can be cast -in the java
application- to one of the data types supported by Derby? and then inserted
in the database in the right format?
Thanks for your answer.











-- 
по краям
-- 
View this message in context: http://www.nabble.com/Generic-data-types-tf4528719.html#a12922366
Sent from the Apache Derby Users mailing list archive at Nabble.com.


Mime
View raw message