修改后数据库中的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.... 的执行效率也不同, 前者从大类中查询,然后再查询特性,后者是查询所有的内容特性后,再查询分类。 前者的效率高于后者。