File:newpage.xmls
Method:query.dataList(sql)
語法錯誤 (操↑作符丟失) 在查詢表達式 'n.CatalogId=s.CatalogId and n.ContentId=' 中。
SELECT * from newscontent n,newscatalog s where n.CatalogId=s.CatalogId and n.ContentId=
越界或超【過範圍
newpage.xmls
$out main(){
$shell.layout(newpage.htm);
@query=$query(catalog,news);
@query1=$query(content,news);
@contenid=$http.argv(0);
@query1[ContentId]=@contenid;
@sql1=['1>0 and Status>0 and ContentId={*ContentId}'];
@list9=@query1.dataList(['SELECT * from newscontent n,newscatalog s where n.CatalogId=s.CatalogId and n.ContentId={*ContentId}']);
@list8=@query1.dataList(['select top 3 * from newscontent where CatalogId=60']);
@list12=@query.dataList(['select top 3 * from newscatalog where ParentId=63']);
}