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

APPML
AppML 简介
AppML 案例
AppML 案例说明
AppML 网络服务
案例研究简介
案例研究:数据库
案例研究:AppML
案例研究:HTML 报告
案例研究:HTML 表单
案例研究:目录
案例研究:产品
案例研究:托运人
案例研究:供应商
案例研究:客户
案例研究:雇员
案例研究:应用程序
案例研究:下载
AppML FAQ
AppML 文档
AppML 数据库元素

APPML 中的 maintable


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 351 ::
收藏到网摘: 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

登陆 | 还没注册?