I want to insert beacon scan result in to a database using python and mysql
Michael Torrie
torriem at gmail.com
Thu Nov 10 15:15:39 EST 2016
On 11/10/2016 11:32 AM, Chris Angelico wrote:
> The easiest way is to use a parameterized query:
>
> cur.execute("insert into beacon VALUES(null, %s)", (beacon,))
>
> I don't understand why so many people conflate parameterized with
> prepared. "Prepared statements" have a two-step execution.
> "Parameterized queries" needn't.
Good point. Yes that's what I was going for but forgot the term.
More information about the Python-list
mailing list