Weight of data types [message #302579] |
Tue, 26 February 2008 04:06 |
n_de_fontenay
Messages: 33 Registered: October 2006 Location: Paris
|
Member |
|
|
Good morning,
I'm trying to find information on how much every oracle data type weight in a database.
For example, when I put a date in a table how much does it weight.
I need to know this or a bit more generally, how are they stored in the DB.
I know that characters are 1 byte but I wonder if integers are binaries and the number 2 would be 2 bits.
I have no idea for dates and decimal numbers.
Does anyone know about those things.
A link to the subject would be great too.
regards and thanks in advance,
Nico
|
|
|
|
Re: Weight of data types [message #302587 is a reply to message #302579] |
Tue, 26 February 2008 04:30 |
n_de_fontenay
Messages: 33 Registered: October 2006 Location: Paris
|
Member |
|
|
Hi.
this is the data_length (how long) of every columns for every table.
I'm not talking about column size here, it's really how much space in bits or bytes a value of a certain type takes on the hard disk.
and I need to know that for:
date
float
integer
varchar2
Lobs are another subject.
How are they encoded?
at school i've learned counting in binaries for integer
0
1
10
11
100
101
110
111
1000
Does that apply for integers in the DB? what about dates and floats?
this is what I have in mind.
Nico
|
|
|
|
|
|
|
|
Re: Weight of data types [message #302632 is a reply to message #302579] |
Tue, 26 February 2008 06:56 |
n_de_fontenay
Messages: 33 Registered: October 2006 Location: Paris
|
Member |
|
|
believe it or not, I got an application that my company bought (a year before, I just joined) and of course now it wreck havocs and it does mix a lot of different values in just one field called "value".
of course there's a field with an ID which links to another table called "LABEL". I thought only beginners student could do that; It seems not.
Problem is my management don't even understand why having 115 lines for a policy is wrong!!!
I have to justify everything I say and it drives me crazy!
I know why we use types, I just couldn't find something official to justify it.
|
|
|
|
|