Skip to content Skip to sidebar Skip to footer

Extracting Values From Sqlite Database In Python

I was trying to figure out how to work with SQLite database using python, but seem to be stuck. I think I am missing something basic. I was following this tutorial: http://docs.pyt

Solution 1:

c.execute('select * from stocks where price > ?', (50,))

c.execute('select * from stocks where price between ? and ?', (40, 70))

c.execute('select * from stocks where price > ? and symbol = ?', (50, 'IBM'))

Is this ok or do you need a universal solution?


Post a Comment for "Extracting Values From Sqlite Database In Python"