Concatenating a Hash to a String
Ivan "Rambius" Ivanov
rambiusparkisanius at gmail.com
Wed Dec 2 01:24:40 EST 2020
Hello,
Thank you all for your help.
On Tue, Dec 1, 2020 at 1:38 PM MRAB <python at mrabarnett.plus.com> wrote:
> The bytes are all in the ASCII range, so you can convert it into a
> string using .decode('ascii').
I utilized encode and decode string methods to convert from bytes to strings
> And, of course, use parametrised queries, as ChrisA said.
I am using sqlite3 and it supports parameterized queries. Overall they
are better than constructing the sql statements manually.
Regards and thanks
rambius
--
Tangra Mega Rock: http://www.radiotangra.com
More information about the Python-list
mailing list