错误如下。如何在不收到此错误的情况下插入?
错误代码:1093。您无法指定目标表' ROLE_PERMISSION'对于 FROM子句0,00095秒更新
代码:
INSERT INTO ROLE_PERMISSION(ID, PERMISSION, ROLE_ID) VALUES ((SELECT MAX(ID)+1 from ROLE_PERMISSION), 'MOBILE_APP_CONNECTION', (SELECT ID FROM ROLES WHERE NAME='PROJECT_USER'));