I want to insert into a table as long as that entry doesn't already exist. This is my line of code:
cursor.execute("INSERT INTO author (name) VALUES(?) SELECT * FROM author WHERE NOT EXISTS (SELECT * FROM author)", (aname, ))
Also, I'm not sure if this query is correct since I haven't had the opportunity to test it, reason being I keep getting a syntax error.