date.chapril.org-framadate/adodb/tests/xmlschema-mssql.xml

34 lines
832 B
XML
Raw Normal View History

2011-05-15 03:56:54 +02:00
<?xml version="1.0"?>
<schema version="0.3">
<table name="simple_table">
<field name="id" type="I" size="11">
<KEY/>
<AUTOINCREMENT/>
</field>
<field name="name" type="C" size="3">
<DEFAULT value="no"/>
</field>
<field name="description" type="X"></field>
<index name="id">
<UNIQUE/>
<col>id</col>
</index>
<index name="id_2">
<col>id</col>
</index>
<data>
</data>
</table>
<sql>
<descr>SQL to be executed only on specific platforms</descr>
<query platform="postgres|postgres7">
insert into mytable ( row1, row2 ) values ( 12, 'postgres stuff' )
</query>
<query platform="mysql">
insert into mytable ( row1, row2 ) values ( 12, 'mysql stuff' )
</query>
<query platform="mssql">
INSERT into simple_table ( name, description ) values ( '12', 'Microsoft stuff' )
</query>
</sql>
</schema>