ylb:exists(存在)的应用实例

ylbtech-SQL Server:exists(存在)的应用实例

 SQL Server exists(存在)的应用实例。

1,exists(存在)的应用实例 返回顶部
-- =============================================
-- ylb:本案例探讨的是:“exists”
-- 11:25 2011/12/9
-- =============================================
use pubs
go

--exists
---P3:查询和出版社在同一个城市的作者姓名?
select * from authors a
where exists(select * from publishers where city=a.city)
warn 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
posted on 2013-12-27 17:55  ylbtech  阅读(255)  评论(0编辑  收藏  举报