I have been having some issues trying to create (or select) from tables where the name is dependant on the variable I am giving it.
E.g below is an example of a code I tried that didn't work, where 'Hey' = the name of the table (which exists in the database) that I am trying to select through the variable 'j'.
j = 'Hey'
rows = conn.execute("SELECT * from ?", (j,)).fetchall()
print(rows)
Does anyone have a solution for this? Thanks in advance.