alter table 修改表 ; 修改表结构 ; 编辑表结构
alter table rename column 修改列名
alter table monitor 自动收集统计信息
alter table emp drop column 删除字段
alter table TABLE add column 增加字段
alter table emp modify column 修改字段
alter table add constraint 在已有的表上增加约束
alter table tabname deallocate unused 关于释放表空间的疑问
A new, empty partition can be added to a partitioned table by executing the ALTER TABLE statement with the ADD PARTITION option specified; the syntax used looks like this
可以通过执行 ALTER TABLE 语句并指定 ADD PARTITION 选项来向一个分区表增加一个新的空分区,使用的语法如下所示
You can easily attach and detach the partitions using the DB2 alter table command to move the data from one table (production table) to another table (history table) in the same database.
您可以很容易使用DB 2 alter table命令来附加和分离分区,从而将数据从一个表(生产表)移动到同一个数据库的另一个表(历史表)中。
The following example demonstrates how to rename a column using the ALTER table command while keeping the table fully accessible.
下面的示例演示了如何使用ALTER TABLE命令重命名一个列,同时保持表具有完整的可访问性?
应用推荐