ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: APPML :: AppML Êý¾Ý¿âÔªËØ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

APPML
AppML ¼ò½é
AppML °¸Àý
AppML °¸Àý˵Ã÷
AppML ÍøÂç·þÎñ
°¸ÀýÑо¿¼ò½é
°¸ÀýÑо¿£ºÊý¾Ý¿â
°¸ÀýÑо¿£ºAppML
°¸ÀýÑо¿£ºHTML ±..
°¸ÀýÑо¿£ºHTML ±..
°¸ÀýÑо¿£ºÄ¿Â¼
°¸ÀýÑо¿£º²úÆ·
°¸ÀýÑо¿£ºÍÐÔËÈË
°¸ÀýÑо¿£º¹©Ó¦ÉÌ
°¸ÀýÑо¿£º¿Í»§
°¸ÀýÑо¿£º¹ÍÔ±
°¸ÀýÑо¿£ºÓ¦ÓóÌ..
°¸ÀýÑо¿£ºÏÂÔØ
AppML FAQ
AppML Îĵµ
AppML Êý¾Ý¿âÔªËØ

AppML Êý¾Ý¿âÔªËØ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:3445 :: ::

The <database> element contains information about the database connection.
<database>ÔªËØÇ¶Ì×Á˹ØÓÚÊý¾Ý¿âÁ¬½ÓµÄÐÅÏ¢¡£


The <database> Element
<database>ÔªËØ

The <database> element contains information about the database connection.
<database>ÔªËØÇ¶Ì×Á˹ØÓÚÊý¾Ý¿âÁ¬½ÓµÄÐÅÏ¢¡£

Inside the <database> element, there is a mandatory <connection> element that contains a named database connection, and other elements, like <sql>, that is used to specify a default SQL selection for the application.
ÔÚ<database>ÔªËØÄÚ£¬ÓÐÒ»¸ö°üº¬Êý¾Ý¿âÁ´½ÓÒÔ¼°ÆäËüÖîÈç<sql>ÕâÑùµÄÔªËØ£¬ÓÃÓÚΪӦÓóÌÐòÖ¸¶¨Ä¬ÈϵÄSQLÁ¬½Ó¡£

<?xml version="1.0" ?>
<appml>
<database> <connection>northwind</connection>  <sql>SELECT CompanyName,ContactName,City FROM Customers</sql> </database>
....
....
</appml>


<database> Child Elements
<database>×ÓÔªËØ

The <database> element may have the following child elements:
<database>ÔªËØ¿ÉÒÔ°üº¬ÏÂÁÐ×ÓÔªËØ£º

Element
ÔªËØ
Description
ÃèÊö
connection Contains a named database connection
°üº¬ÁËÖ¸¶¨µÄÊý¾Ý¿âÁ¬½Ó
constraint Defines constraints between tables
¶¨ÒåÁ˱í¸ñ¼äµÄÏÞÖÆÌõ¼þ
keyfield Defines the primary key of the maintable
¶¨ÒåÁËÖ÷Ⱥ×éµÄÊ×Òª¼ü
maintable Defines the main table of the database connection
¶¨ÒåÁËÊý¾Ý¿âÁ¬½ÓµÄÖ÷±í¸ñ
sql Defines a default SQL for the application
ΪӦÓóÌÐò¶¨ÒåÁËĬÈϵÄSQL


ÆÀÂÛ (0) All