I am inserting a value in a database using:
cursor.execute(INSERT_SQL);Sometimes this function will generate an ERROR in the SERIAL window , for instance if that value already exists in the database,
I need to have that ERROR in a variable, so I can decide what to do upon that error
I was trying to assign the result to a String, but cursor.execute() returns an iterator,
also tried to read from serial, didn't work
Please help,