Home  >  Article  >  Database  >  How to modify the default value of a field in Oracle

How to modify the default value of a field in Oracle

hzc
hzcOriginal
2020-06-08 14:10:2712078browse

How to modify the default value of a field in Oracle

How to set the default value of a field in a table in an oracle database

If the table already exists, use the following method to set the default value.

alter table table name modify field name default default value;

If the address field is set to 'Zhejiang Province' in the test table, the following statement can be used:

alter table test modify address default 'Zhejiang Province';

Oracle related introduction:

Oracle Corporation, the full name of Oracle Corporation (Oracle Software Systems Co., Ltd.), is the world's largest An enterprise software company headquartered in Redwood Beach, California, USA. Officially entered the Chinese market in 1989. In 2013, Oracle surpassed IBM and became the world's second largest software company after Microsoft.

Recommended tutorial: "Oracle Tutorial"

The above is the detailed content of How to modify the default value of a field in Oracle. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn