1,系统切换成 “DB2ADMIN”试试
2,或者在连接的时候指定 用户:
db2 connect to databasename user DB2ADMIN using pwd(DB2ADMIN账户密码)
3,先看表状态 如何 load query table t2
再看看表空间状态 db2 list tablespaces show detail
好象 0x0000 是正常
下面一些东西也许对你那个问题有用(也许帮不了你, sorry)
http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0811chengy1/
我也是刚接触的不久,学习中.....
查看表employee1
db2 describe table db2inst.employee1
输入:
db2 "alter table employee1 add birth char(10)"
用于添加列:birth
其中,employee1 是表名;birth 是要添加列的名称
在查看表employee1
db2 describe table db2inst.employee1
可见成功添加一列birth
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)