>>> SQL = "INSERT INTO osoba (jmeno) VALUES ('%s');" # nikdy, nikdy nikdy
>>> data = ("O'Reilly", )
>>> cur.execute(SQL % data) # tady bude chyba
ProgrammingError: syntax error at or near "Reilly"
LINE 1: INSERT INTO authors (name) VALUES ('O'Reilly')
