SQL查詢的藝術學習筆記--數據的更新和刪除

use seldata --補充:刪除表中的重複記錄 select * from course  where cno in (select cno from course group by cno having COUNT(cno)>1) --查詢表中行大於1(重複)的記錄 select distinct * into #temp from teacher delete teacher go in
相關文章
相關標籤/搜索