十五

高級查詢2 exists 子查詢; 1.用exists檢測表是否已經創建 drop table if exists info create table info( #省略建表語句 ) 2.select 字段名 from info where exists(子查詢) 子查詢有返回結果:exists子查詢結果爲true 子查詢無返回結果:exists子查詢結果爲false,外層查詢不執行 3.exis
相關文章
相關標籤/搜索