Storing NULL values in DB
Posted on 2003-10-23
I have a date field that might or might not contain data. What do you suggest I store it as
I store it as NULL riht now, but it is causing some problems such as nullPointer Exceptions.
My questions is -> what do experts do?
1. store null and then do a try catch whenever we access it
or 2. use a dummy date as 1901-01-01 as date and then change it during display as "" <empty string>