当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > orderby

APPML
AppML HTML 报告
AppML 过滤函数
AppML HTML 列表
AppML HTML 表单
AppML XML 报告

APPML 中的 orderby


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 339 ::
收藏到网摘: n/a

The <orderby> element defines a fixed ORDER BY clause to be added to the SQL every time the application runs.
<orderby>元素定义了一个固定的 ORDER BY子句,并在应用程序每次运行时将其添加到SQL查询语句中。


Example
案例

<?xml version="1.0" ?>
<appml>
<title>CUSTOMERS</title>
<database>
<connection>northwind</connection>
<sql>SELECT Companyname,ContactName,Country
FROM Customers</sql>
</database>
<filters>
<orderby>Companyname</orderby>
</filters>
<htmlreport />
</appml>

View the output produced by the AppML HTML List Service
查看由AppML HTML 报告服务输出的结果

View the XML source file
查看XML 源文件

Example
案例

<?xml version="1.0" ?>
<appml>
<title>CUSTOMERS</title>
<database>
<connection>northwind</connection>
<sql>SELECT Companyname,ContactName,Country
FROM Customers</sql>
</database>
<filters>
<orderby>Companyname DESC,Country</orderby>
</filters>
<htmlreport />
</appml>

View the output produced by the AppML HTML List Service
查看由AppML HTML 报告服务输出的结果

View the XML source file
查看XML 源文件

评论 (0) All

登陆 | 还没注册?