請我有表名SAPPRD./CS1/TB2_SOPBV和我不能做這個查詢:DB2查詢表名
transfer ownership of table SAPPRD./CS1/TB2_SOPBV TO USER SAPQAS preserve privileges;
我得到錯誤:
DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0104N An unexpected token "/CS1/" was found following "hip of table SAPFIP.". Expected tokens may include: "". SQLSTATE=42601
於是,我就做逃避,我編輯查詢:
transfer ownership of table SAPPRD.\"/CS1/TB2_SOPBV" TO USER SAPQAS preserve privileges
但不會逃避,我仍然得到ER ror:
DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0007N The statement was not processed because a character that is not supported in SQL statements was included in the SQL statement. Invalid character: "\". Text preceding the invalid character: "hip of table SAPPRD.". SQLSTATE=42601
是否有可能在此處轉義並繼續進行此查詢?
謝謝!
順便說一句,非常糟糕的表命名策略。 – AngocA
@AngocA是的,但它是SAP的命名策略,我必須尊重 – Desttro