Default Values – Database

What Does Default Values – Database Mean?

Default values, in the context of databases, are preset values defined for a column type. Default values are used when many records hold similar data.

Advertisements

Techopedia Explains Default Values – Database

When creating a database table in systems such as Oracle or SQL Server, an option to specify a default value is available. This separates database design issues from the front-end application. For instance, if a bank’s interest rate for the current financial year is 8 percent, this may be set as the default value. This relieves the user from having to enter it repeatedly into the database. Most databases use the keyword “default” as a data type.

Modification to a default data type can be changed by using the ALTER TABLE command. When a new row is created with vacant column data type, it is filled with default values. For example, the “Date” column in most cases has a default data type as the “CURRENT DATE.”

Advertisements

Related Terms

Latest Data Management Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…