修改后數據庫中的Speciality的型號為數值型,默認值為0,,后, Sql="select Top 5 Title,FilePath,SmallImg,ShortContent,AddTime From view_NewsInfo where Class=61 and Speciality=29 order By Id DESC"
同時, .... where Class=61 and Speciality=29.... 與 .... where Speciality=29 and Class=61.... 的執行效率也不同, 前者從大類中查詢,然后再查詢特性,后者是查詢所有的內容特性后,再查詢分類。 前者的效率高于后者。