I
I
ivandao2019-10-16 18:11:54
Database
ivandao, 2019-10-16 18:11:54

Does it matter what the field is filled with - text or all NULL values?

The field is of data type VARCHAR2(128)
Whether the field is filled with text or all NULL values.
Will there be a difference in the amount of data occupied on the disk or not?
It seems like VARCHAR2 - dynamically allocates memory and with NULL it should be used less?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TheRonCronix, 2019-10-17
@TheRonCronix

Depends on the DBMS. In MSSQL null and '' are different values, in Oracle null and '' are the same. With NULL, it's more likely that less space will be used.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question