I am trying to delete rows from two tables with inner join. I don't really understand why this error pops up.
import sqlite3
login = 'uzytkownik6'
conn = sqlite3.connect('fiszki.db')
c = conn.cursor()
c.execute("DELETE u.*, t.* FROM users u INNER JOIN translations t ON
u.user_id=t.user_id WHERE u.user_name='{}'".format(login))
conn.commit()
But I get error:
OperationalError: near "u": syntax error