Home > Database > Mysql Tutorial > body text

ORA-01758: 要添加必需的 (NOT NULL) 列, 则表必须为空

WBOY
Release: 2016-06-07 17:07:45
Original
2769 people have browsed it

ORA-01758: 要添加必需的 (NOT NULL) 列, 则表必须为空

ORA-01758: 要添加必需的 (NOT NULL) 列, 则表必须为空

[日期:2011-12-04] 来源:Linux社区  作者:lwei_998 [字体:]

给一个已经有记录的表添加新列,,并指定not null 时报ORA-01758。怎么办?

1.给新添加的列指定默认值。

2.清空表中的记录再添加新列。

实验如下:

linux

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!