http://www.tsov.net/blog/article.asp?id=416
TSYSリソースの特性は文字タイプに保存されるため、更新ファイルを判断する方が面倒です。便利で、効率が向上します。
のように:
元の方法:
sql = "selecttop5title、filepath、smallimg、shortcontent、addtimefromfromfromfromfowhereclass = 61andinstr( '、'+specialty+'、'、 '、'、29、 ')<> 0ORDERBYIDDESC"
変更されたデータベースの専門のモデルは数値で、デフォルト値は0です。
sql = "selecttop5title、filepath、smallimg、shortcontent、addtimefromfromview_newsinfowhereclass = 61andspeciality = 29orderbyiddesc"
同時に、
.... whereclass = 61andspeciality = 29 ..
そして
.... wherespeciality = 29andclass = 61 ..
実行効率も異なります。
前者は主要なカテゴリからクエリをしてから特性を照会しますが、後者はすべてのコンテンツ特性を照会し、分類を照会します。
前者は後者よりも効率的です。
他の:
2006-8-7:
ファイルnews_mdy.aspの行120を変更します
'Specialty = lepter(request( "spectialty")、 ""、 "")これは元のものです
Specialty = request( "Specialty")