MySQL數據庫查詢練習(子查詢分步教程)

注:數據庫表格附錄在文末 – 1、與張三同鄉的男生姓名 step1:SELECT snativeplace FROM student WHERE sname=‘張三’ step2:SELECT sname FROM student WHERE ssex=‘男’ AND snativeplace=(step1) AND sname != ‘張三’ SELECT sname FROM student
相關文章
相關標籤/搜索