Recently, in the process of using Python to write data import program, CX is used_ When the Oracle database was imported into Oracle database, there was an error of “ora-01036: illegal variable name/number”. After querying the data and trying, the problem was solved.
The Error statement is:
sql = ‘insert into \”mytable_ a\” values(%s,%s,%s)’
cursor.executemany (sql, data)
As a result, the error “ora-01036: illegal variable name/number” appears.
resolvent:
Change the place holder of parameter transfer to “: 1,: 2,: 3”,
The modified statement is as follows:
sql = ‘insert into \”mytable_ a\” values(:1, :2, :3)’
cursor.executemany (sql, data)
Execute again and solve the problem.
Read More:
- python cx_Oracle.DatabaseError: Error while trying to retrieve text for error ORA-01804
- Mybatis batch insert data
- Failed to create Oracle Oracle home user solution appears in oracle12c installation
- Insert keyframe giving keying set failed to insert any key frames (solved)
- Insert keyframe giving keying set failed to insert any key frames
- Solution of Oracle error 6550
- Oracle Net Configuration Assistant failed abnormal solution
- Use Python to insert the specified content in the specified line of the specified file
- Oracle database file is damaged, Error:ORA-01033 :ORACLE initialization or shutdown in progress
- Python about error: invalid command ‘bdist_ The solution of wheel error report
- Oracle error collection solution
- How to batch comment and cancel Python code
- The solution of PL / SQL can’t connect to the remote server after installing Oracle locally
- Solution to Oracle error 17002
- Tensorflow operation report error modulenotfounderror: no module named ‘tensorflow. Python. Types’ solution
- Oracle12c client32 bit installation error: [ins-20802] Oracle net configuration assistant failed
- raise ValueError(‘Expected input batch_size ({}) to match target batch_size ({}).‘
- Oracle 11gR2 RAC ohasd failed to start solution
- Python Anaconda Spyder can’t display pictures by using Matplotlib. Error report solution: figures now render in the plots pane by default. To mak
- Encountered a problem — Python — Python 3 uses Sqlalchemy to report an error‘