您的位置:首页 > 博客中心 > 数据库 >

sql中 in 、not in 、exists、not exists 用法和差别

时间:2022-03-13 22:57

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Algodata Infosystems                   

New Moon Books                         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

USE pubs

 

GO

 

SELECT pub_name

 

FROM publishers

 

WHERENOTEXISTS

 

    (SELECT*

 

    FROM titles

 

    WHERE pub_id = publishers.pub_id

 

    AND type = /‘business/‘)

 

ORDERBY pub_name

 

GO

 

SQL中 in 、not in 、exists、not exists 用法和差别,布布扣,bubuko.com

热门排行

今日推荐

热门手游