greenZ

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

DB2 SQL:table,comment,constraints

1.table

    1.1 创建 非分区表
    1.2 字段:添加字段,删除字段,修改字段数据类型长度,更改字段名
    1.3 更改表名,复制表结构(约束除外)
2.comment
    2.1 comment on table
    2.2 comment on column
3.constrains
    3.1添加约束:default ,null|not null,primary key,uique,foreign key
    3.2查看约束
    3.3删除约束
    3.4修改约束状态(禁用,启用)  //TODO
4.reorg 表
 
 
 
 
posted on 2017-03-06 21:38  绿Z  阅读(448)  评论(0)    收藏  举报