Table aliases are not supported when the MySQL database deletes data.
An error occurred while executing a deleted SQL statement.
The SQL statement is as follows:
Delete from LEAD_SYSTEM_MENU_ORG_REF as t WHERE t. resourceid = '4028812348f28b890148f29253a80000'
This SQL statement can be executed normally in the Oracle database, but the following error occurs when it is executed in the MySQL database:
[Err] 1064-You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where t. resourceid = 'hangzhou'
When you see "SQL syntax", you will know that the SQL Execution error is caused by incorrect SQL syntax. This is strange. This deleted SQL statement is normal and can be executed normally, why can't MySQL do this? I checked the reason online. It turns out that table aliases are not supported when I delete data in the MySQL database. I did not notice this problem before. I will record it here.
This article permanently updates the link address: