Alex Rivera | Logout

Is it bad practice to use default values in a database?

Asked 2009-11-09T15:20:11.277
25

Shouldn't the code deal with default values instead of the database?

Edit
Report

1 Answer

2

If you are concerned about data integrity (And if you aren't why do you have a database?), you need the default values in the database where they belong. To do this only in code is irresponsible. Data gets into databases from other sources than application code.

answered 2009-11-09T19:22:24.167

Your Answer