79680567

Date: 2025-06-26 13:24:02
Score: 0.5
Natty:
Report link

Even better, simply use format to replace <placeholder> with formatted string right in the cursor.execute.

Not sure of the reason but this should in-built into oracledb python package.

cursor.execute(sql_query.format(<PLACEHOLDER>=", ".join([f"\'{x}\'" for x in ['value1','value2','valuen']])))

But I don't like this implementation, it's just a workaround.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Praveen Mishra