File:trainNoticeTwo.xmls
Method:query.getRow(columns,*where,*order)
未指定的错误
越界或超过范围
trainNoticeTwo.xmls
$out main(){
$shell.running();
$shell.layout(pages/trainNoticeTwo.htm);
@dbcatalog=$query(catalog,news);
@Topping=@dbcatalog.getRow(*,['CatalogId=46']);;
@query=$query(content,news);
//@Topping=@query.getRow(['Title,Pic,Description'],['ContentId=15 and Status>0 and AreaId=1']);
@dbcatalog[CatalogId]=$http.argv(0);
@CatalogName=@dbcatalog.scalar(CatalogName,['CatalogId={*CatalogId}']);
@query[CatalogId]=$http.argv(0);
@sql=['CatalogId={*CatalogId} and Status>0 and AreaId=1'];
@count=@query.scalar(['count(*)'],@sql);
@index=$http.get(page,#n,1);
@list=@query.getList(*,@sql,['Grade ...