子查詢(exists子查詢)

MySQL子查詢(exists子查詢) 1:Exists子查詢就是用來判斷某些條件是否滿足(跨表),Exists是接在where之後,Exists返回的結果只有0和1 2:返回結果的演示 SELECT EXISTS(SELECT * FROM t_student);3: SELECT EXISTS(SELECT * FROM t_student WHERE id=10); 3:案例演示 需求:查詢
相關文章
相關標籤/搜索