欢迎投稿

今日深度:

db2如何重命名表?,db2重命名表?

db2如何重命名表?,db2重命名表?


db2如何重命名表?

设置当前的schema:
db2 => set schema db2admin
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

去掉schema可以成功重命名:
db2 => rename table test_tab to test_tab1
DB20000I  The SQL command completed successfully.

 

www.htsjk.Com true http://www.htsjk.com/DB2/20573.html NewsArticle db2如何重命名表?,db2重命名表? db2如何重命名表? 设置当前的schema:db2 = set schema db2adminDB20000I The SQL command completed successfully.此时,命令中包含schema会报错:db2 = rename table db2admin.test...
评论暂时关闭