Oracle altet table Rules

       Oracle 修改表的限制

       To make a NOT NULL column nullable, use the alter table command with the NULL clause,
as follows:
alter table TROUBLE modify
(Condition NULL);
The Rules for Adding or Modifying a Column
These are the rules for modifying a column:

       (在任何情况下)
        1、You can increase a character column’s width at any time.
        2、You can increase the number of digits in a NUMBER column at any time.
        3、You can increase or decrease the number of decimal places in a NUMBER column
at any time.

        1、你可以在任何时间增加列的字符串长度。

        2、你可以在任何时间增加列的数字的(number)精度。

        3、你可以在任何时间增加或者减小列的小数点的位数

      (在某一列的值为NULL的时候)
In addition, if a column is NULL for every row of the table, you can make any of these changes:
        1、You can change the column’s datatype.
        2、 You can decrease a character column’s width.
        3、You can decrease the number of digits in a NUMBER column.
        4、You can only change the datatype of a column if the column is empty (NULL) in all rows of
the table.

       当表的某一列不为空的时候:

        1、你可以修改列的数据类型。

        2、你可以减小字符串的位数。

        3、你可以在减小列的数字的(number)精度。

        4、如果在表中某一列的数据为NULL,你可以修改他的数据类型。

I believe that we are who we choose to be. Nobody‘s going to come and save you, you‘ve got to save yourself. 我相信我们成为怎样的人是我们自己的选择。没有人会来拯救你,你必须要自己拯救自己。
原文地址:https://www.cnblogs.com/caroline/p/2389064.html