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

Margaret Rouse
Technology Expert

Margaret 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 IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages.