select Name Customers from Customers c where not existsselect 1 from Orders o where oCustomerId=cId这个exit是什么
这里的"exists"是一个SQL中的关键字,用于判断子查询是否返回任何行。在这个查询中,它用于检查是否存在与顾客相关联的订单。如果子查询返回任何行,那么"not exists"条件将被视为假,且不会返回相关的顾客。
原文地址: https://www.cveoy.top/t/topic/dbiy 著作权归作者所有。请勿转载和采集!