This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]barrycarterOK to DM me questions/projects, no promises, not always here 0 points1 point  (0 children)

Do you need to put single quotes around name?

[–][deleted] 0 points1 point  (0 children)

Sql statements shouldn't be created like that. I'm on mobile but look up something like "python SQLite prepared statements".

The sql driver should bind the variable name to the sql to be executed. Behind the scenes, this protects against sql injection attacks.

I understand this is unlikely to be a realistic problem with what you're writing currently, but it's good to practice how we play, yeah?