我正在尝试在sqlite中删除表“eventos”的行,如下所示:
DELETE e FROM `eventos` AS e
INNER JOIN `noticias` AS n ON e.noticiasId=n.id
WHERE n.fechaExpiracion < DATE_SUB(CURDATE(), INTERVAL 1 MONTH)
我有以下错误
android.database.sqlite.SQLiteException: near "e": syntax error
我不确定为什么会出现此错误,我认为sqlite不允许使用AS