File:news/news-page.htm
Method:query.scalar(columns,*where,*order)
资源池 'internal' 没有足够的系统内存来运行此查询。 当前命令发生了严重错误。应放弃任何可能产生的结果。 select top 1 CatalogId FROM cocatalog WHERE Status>0 and TagIds like '%,3,%' ORDER BY Grade desc,CatalogId asc
数据库执行错误
news/frame.xmls
$sub main(){
$shell.call($get(method));
}


$sub catalog(){
@maps=$map();
@query=$query(catalog,content);
@CatalogId=$argv(0,$null);
$if(!@CatalogId){
@query[TagIds]=[",3,"];
@
CatalogId=@query.scalar(CatalogId,['Status>0 and {*TagIds like}'],['Grade desc,CatalogId asc']);
}
@format=[#<li class="{@On}"><a href="{~news-page/*CatalogId}">{*CatalogName}</a></li>#];
@query[TagIds]=[",3,"];
@tablea=@query.table(*,['Status>0 and {*TagIds like}'],['Grade desc,CatalogId asc']);
@maps[listta]=@tablea.format(@format){
@On=$empty;
$if(@CatalogId==$var[CatalogId]){
@On=on;
}
}
$if(@CatalogId){
@query[CatalogId]=@CatalogId;
@querymap=@query.map(['Pic,Description'],['{*...