Python Forum
Problem with quotes on MySQL request
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with quotes on MySQL request
#2
As per the MySQLdb documentation, you can use placeholders only for column names, not table names etc. You might want to go through this link (look for paramstyle)
So you can take input from the user as to what column he/she wants to select, but not which table to select from.
Reply


Messages In This Thread
RE: Problem with quotes on MySQL request - by cryomick - Jun-19-2018, 09:57 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020