• Oracle----Key Word


    desc|describe table_name

    DCL----column

    ----add

    -- add one column
    alter table product
    add state varchar2(10);
    
    -- add multiple columns
    alter table product
    add (state varchar2(2) default '0', names varchar2(100), age number);

    ----drop

    -- drop one column
    alter table product
    drop column name;
    
    -- drop multiple columns
    alter table product
    drop (names, state);

    ----modify

    -- modify one column
    alter table product
    modify address date;
    
    -- modify multiple columns
    alter table product
    modify (age varchar2(20), address int, mail date);
  • 相关阅读:
    13 数据库主从
    12 数据备份
    11 锁机制
    12 日志
    10 索引(二)
    09 索引
    update kernel 3.10-3.12
    haproxy para config
    mysql slave to master
    storage disk
  • 原文地址:https://www.cnblogs.com/daishuguang/p/4042421.html
Copyright © 2020-2023  润新知