ORA-01747: invalid user.table.column, table.column, or column specification

前端 未结 11 2440
旧巷少年郎
旧巷少年郎 2021-01-04 01:27

Get the above error when the execute immediate is called in a loop

Update CustomersPriceGroups set  1AO00=:disc  Where cuno=:cuno
    Parameters:   disc=66 c         


        
11条回答
  •  半阙折子戏
    2021-01-04 02:32

    In addition to reasons cited in other answers here, you may also need to check that none of your table column names have a name which is considered a special/reserved word in oracle database.

    In my case I had a table column name uid. uid is a reserved word in oracle and therefore I was getting this error.

    Luckly, my table was a new table and I had no data in it. I was a able to use oracle DROP table command to delete the table and create a new one with a modified name for the problem column.

    I also had trouble with renaming the problem column as oracle wouldn't let me and kept throwing errors.

提交回复
热议问题