Exists

Exists
Exists:如果在 Dictionary 对象中指定的记录存在,返回 True,若不存在,返回 False。语法object.Exists(key)Exists 有如下几部分:部分描述Object必需的,始终是一个 Dictionary 对象的名字,Key必需的,在 Dictionary 对象中搜索的 Key 值。

作用

EXISTS在SQL中的作用是:检验查询是否返回数据。

使用举例

select a.* from tb a where exists(select 1 from tb where name =a.name)