select id from t where name like ‘abc%’
這類代碼不會返回任何結果集,但是會消耗系統資源的,應改成這樣: create table #t(…)
用下面的語句替換: select num from a where exists(select 1 from b where num=a.num)
30.盡量避免向客戶端返回大數據量,若數據量過大,應該考慮相應需求是否合理。
轉載于:http://blog.csdn.net/u014421556/article/details/52063904
新聞熱點
疑難解答