w3pop.com :: ÍøÂçѧԺ :: APPML :: AppML Êý¾Ý¿âÔªËØ
The <database> element contains information about the database connection.
<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> |
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