<xsl:if test="count($customer-table//CUSTOMERORDER) > 0">
<sql:update table="customer" connection="$connection" where="CUSTOMERID='{$customerid}'">
<sql:column name="CUSTOMERLASTNAME" select="CUSTOMERLASTNAME"/>
<sql:column name="CUSTOMERFIRSTNAME" select="CUSTOMERFIRSTNAME"/>
<sql:column name="CUSTOMEREMAIL" select="CUSTOMEREMAIL"/>
</sql:update>
</xsl:if>
<?xml version="1.0"?>
<CUSTOMERORDERS>
<DELETE></DELETE>
</CUSTOMERORDERS>
<xsl:template match="CUSTOMERORDERS">
<xsl:apply-templates select="DELETE" />
</xsl:template>
![]()
<xsl:template match="DELETE">
<sql:delete table="address" connection="$connection" />
<sql:delete table="orderitem" connection="$connection" />
<sql:delete table="custorder" connection="$connection" />
<sql:delete table="customer" connection="$connection" />
</xsl:template>
| 第1页: 什么是XQuery | 第2页: XQuery API for Java (XQJ)简介 |
| 第3页: 对数据表进行CRUD操作 | |
| 第5页: 总结 |