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

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

APPML 中的 maintable


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

The <maintable> element defines the main table for the application.
<maintable> 元素为应用程序定义了主表。

If the <sql> element is omitted AppML uses the <maintable> element to define a default SQL statement (SELECT * FROM maintable) for the application.
如果忽略了<sql>元素,那么AppML将会使用<maintable> 元素为应用程序定义一条默认的SQL语句(SELECT * FROM maintable)。

Note: When working with input forms, you must always define the <maintable> and <keyfield> elements.
注意:当与输入表单一起使用时,你必须定义<maintable> 和 <keyfield>元素。

Example
案例

This AppML description:
AppML描述:

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
<maintable>customers</maintable>
</database>
</appml>

is equal to:
上面的与下面的等同:

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
<maintable>customers</maintable>
<sql>SELECT * FROM customers</sql>
</database>
</appml>


评论 (0) All

登陆 | 还没注册?