text and numeric

Started by Masse Jacquesabout 24 years ago2 messagesgeneral
Jump to latest
#1Masse Jacques
jacques.masse@bordeaux.cemagref.fr

Looking for an expert advice :

I have to store in a table records like (param_name, value)with value as
text or numeric.

Has someone experience what will be the "best" solution

a--------------
param_name value(text)
'length' 30
'color' green

with type casting on the queries or

b--------------
param_name value(text) value(numeric)
'length' 30
'color' green

with some function for the choice of the column ?

___________________________________________
Jacques Massé
Tel. 33 (0)5 57 89 08 11 - Fax 33 (0)5 57 89 08 01

#2Marin Dimitrov
marin.dimitrov@sirma.bg
In reply to: Masse Jacques (#1)
Re: text and numeric

we use (b) with additional column VALUE_TYPE to give u a hint where the data
actually is

Show quoted text

a--------------
param_name value(text)
'length' 30
'color' green

with type casting on the queries or

b--------------
param_name value(text) value(numeric)
'length' 30
'color' green

with some function for the choice of the column ?