这是SQL查询语句问题,与ASP关系不大.不同数据库会有所差别.
程序代码:function ContentList(ID)
dim SortPath
SortPath=request.QueryString("SortPath")
dim idCount
dim datafrom
datafrom="Ameav_News"
dim datawhere'
if instr(SortPath,"37")>0 then
datawhere="where ViewFlag and Instr(SortPath,'"&SortPath&"')>0"
else
datawhere="where ViewFlag "
end if