概述
设置当前的schema:
db2 => set schema db2admin
DB20000I The SQL command completed successfully.
DB20000I The SQL command completed successfully.
此时,命令中包含schema会报错:
db2 => rename table db2admin.test_tab to db2admin.test_tab1
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0108N The name "test_tab1" has the wrong number of qualifiers.
SQLSTATE=42601
db2 => rename table db2admin.test_tab to db2admin.test_tab1
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0108N The name "test_tab1" has the wrong number of qualifiers.
SQLSTATE=42601
去掉schema可以成功重命名:
db2 => rename table test_tab to test_tab1
DB20000I The SQL command completed successfully.
db2 => rename table test_tab to test_tab1
DB20000I The SQL command completed successfully.
最后
以上就是怡然火龙果为你收集整理的db2重命名表的全部内容,希望文章能够帮你解决db2重命名表所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复