1
After accessing the database and have the desired query in case:
...
c = conn.cursor()
c.execute('SELECT `tb1`.`Nome`, `tb1`.`Apelido` FROM tb1')
How to create a python dictionary for my command above?
dict = {Nome:'Apelido'} ...
?
1
After accessing the database and have the desired query in case:
...
c = conn.cursor()
c.execute('SELECT `tb1`.`Nome`, `tb1`.`Apelido` FROM tb1')
How to create a python dictionary for my command above?
dict = {Nome:'Apelido'} ...
?
Browser other questions tagged sql python
You are not signed in. Login or sign up in order to post.
Very good the parameter Dictionary = True. I will use it.
– David