SQL 篩選出最新一條數據

sql中exists,not exists的用法 exists : 強調的是是否返回結果集,不要求知道返回什麼, 好比:   select name from student where sex = 'm' and mark exists(select 1 from grade where ...) ,只要 exists引導的子句有結果集返回,那麼exists這個條件就算成立了,你們注意返回的字段
相關文章
相關標籤/搜索