#重命名emp_photo遇到SQL0750N的错误
[db2inst1@db22 ~]$ db2 "rename table db2inst1.emp_photo to emp_photo_210170725"
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0750N The statement failed because the table or column cannot be renamed.
SQLSTATE=42986
#重命名employee遇到SQL0750N的错误
[db2inst1@db22 ~]$ db2 "rename table db2inst1.employee to employee_210170725"
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During
SQL0750N的错误指示——检查表的关联依赖
最新推荐文章于 2022-02-18 11:33:06 发布
当尝试重命名DB2中的表时,可能会遇到SQL0750N错误,表明表被物化查询视图、历史表、检查约束等依赖。解决方法包括在重命名前删除或解除表上的视图、物化查询视图、触发器、SQL函数、SQL方法、检查约束和参考约束。通过查询SYSCAT编目视图可以找到这些依赖项。
摘要由CSDN通过智能技术生成