常用sql語句

select  name from student where name not in (select  name from student where scount<=100)

 

select distinct name from student where scount<=80

select name from student where scount<=80

select distinct name  from student where name not in(select distinct name from student where scount<=80)


select distinct name from student where scount>80

delete from student where classid not in(select min(classid) from student group by classid)

發佈了83 篇原創文章 · 獲贊 3 · 訪問量 5116
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章