0

so I'm not sure how this is called, but I want to select some rows from db where certain name equals passed variable.

I've tried to use the following:

db.execute("SELECT * FROM stations WHERE name LIKE ?", station + "%")

or

db.execute("SELECT * FROM stations WHERE name LIKE ?%", station)

but neither works.

How is this performed?

areedy
  • 105
  • 4

0 Answers0