zoukankan      html  css  js  c++  java
  • 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. 我相信我们成为怎样的人是我们自己的选择。没有人会来拯救你,你必须要自己拯救自己。
  • 相关阅读:
    Http协议(一)基础知识
    Redis问题汇总
    Sql Server存储过程传递XML参数
    C# Redis
    Task的异常捕获和处理方法
    Entity Framework教程
    WebBrowser 弹窗体关闭原理
    C# 虹软SDK视频人脸识别和注册
    C#性能优化:延迟初始化Lazy
    DZ 特殊主题简单开发教程
  • 原文地址:https://www.cnblogs.com/caroline/p/2389064.html
Copyright © 2011-2022 走看看