标签: mysql exists
查询如下:
SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM INDIVIDUAL WHERE INDIVIDUAL_ID=1);
但如果
SELECT 1 FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM INDIVIDUAL WHERE INDIVIDUAL_ID=1);
我想不仅为MySQL运行此查询,那么有没有办法在没有DUAL表的情况下运行?