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)