主題
:
SQL 的問題
瀏覽單個文章
Devil
Power Member
加入日期: Jan 2001
您的住址: Taipei
文章: 503
引用:
作者
student
select S_name from student where s# in (select s# distinct from Take group by s# having count(s#) > 4)
基本上不建議使用IN子句,以SQL Server為例,這樣下SQL Query將無法套用Index
__________________
2008-05-11, 11:09 PM #
9
Devil
瀏覽公開訊息
傳送私人訊息給Devil
查詢Devil發表的更多文章
增加 Devil 到好友清單