You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INSERT INTO employees (id, first_name, last_name, salary)
SELECT (select IFNULL(MAX(id), 0) from employees) + 1, 'John', 'Doe2', 50000.0
WHERE NOT EXISTS (SELECT 1 FROM employees WHERE first_name='John3');
INSERT INTO employees (id, first_name, last_name, salary)
SELECT (select IFNULL(MAX(id), 0) from employees) + 1, 'John', 'Doe2', 50000.0
from dual
WHERE NOT EXISTS (SELECT 1 FROM employees WHERE first_name='John3');
环境
数据库: [mysql/mariadb]
版本: [例如 5.7.21]
The text was updated successfully, but these errors were encountered:
描述
这个语句可以在navicate正常执行,但是
在archery,goinception审核不过,异常信息如下,
加上from dual后正常解析语句并审核了,这是为什么呢
环境
The text was updated successfully, but these errors were encountered: