table test has following structure.
test (id number, geom mdsys.sdo_geometry)
I am able to insert a row with below sql. It works fine.
insert into test values (10, SDO_UTIL.FROM_WKTGEOMETRY(('POLYGON ((4 5, 6 7, 9 7, 4 5))')));
How to write the above sql statement in python and cx_Oracle.
I want to use variable as below.
x = POLYGON ((4 5, 6 7, 9 7, 4 5))