Here is my sample statement:
conn.cursor.execute("insert into Employee(name, manager) values(?,?)", ('rahul',''))
I'm using Sybase as database. If I execute the statement using a database client:
insert into Employee(name, manager) values('rahul','')
then, empty values are inserted for manager
column, which is desired.
But when I execute the prepared statement, NULL
values are inserted into the database.
How this is happening? And how to fix this issue? Thank you!