delphi 中NOT IN 和NOT EXISTS 的用法和区别

如题所述

not in 是在某集合中不存在,应用格式如:
if s not in['A','B','C'] then
......

not exists 是不存在某对象(如文件),应用格式如:
if not exists('C:\aaa.txt') then
......
温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-12-31
那不是delphi,是SQL语句。

a Not in A
a是个体,A是集合 。a不在A里面。

Not Exsts select * from table where x>0
表里面不存在x>0的记录。本回答被提问者采纳
第2个回答  2011-12-31
不在里面 和不存在