mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
75 lines
1.5 KiB
Text
75 lines
1.5 KiB
Text
|
create table t1 (
|
||
|
`a&b` int,
|
||
|
`a<b` int,
|
||
|
`a>b` text
|
||
|
);
|
||
|
insert into t1 values (1, 2, 'a&b a<b a>b');
|
||
|
<?xml version="1.0"?>
|
||
|
|
||
|
<resultset statement="select * from t1
|
||
|
">
|
||
|
<row>
|
||
|
<field name="a&b">1</field>
|
||
|
<field name="a<b">2</field>
|
||
|
<field name="a>b">a&b a<b a>b</field>
|
||
|
</row>
|
||
|
</resultset>
|
||
|
<?xml version="1.0"?>
|
||
|
<mysqldump>
|
||
|
<database name="test">
|
||
|
<table_structure name="t1">
|
||
|
<field Field="a&b" Type="int(11)" Null="YES" Key="" Extra="" />
|
||
|
<field Field="a<b" Type="int(11)" Null="YES" Key="" Extra="" />
|
||
|
<field Field="a>b" Type="text" Null="YES" Key="" Extra="" />
|
||
|
</table_structure>
|
||
|
<table_data name="t1">
|
||
|
<row>
|
||
|
<field name="a&b">1</field>
|
||
|
<field name="a<b">2</field>
|
||
|
<field name="a>b">a&b a<b a>b</field>
|
||
|
</row>
|
||
|
</table_data>
|
||
|
</database>
|
||
|
</mysqldump>
|
||
|
<?xml version="1.0"?>
|
||
|
|
||
|
<resultset statement="select count(*) from t1
|
||
|
">
|
||
|
<row>
|
||
|
<field name="count(*)">1</field>
|
||
|
</row>
|
||
|
</resultset>
|
||
|
<?xml version="1.0"?>
|
||
|
|
||
|
<resultset statement="select 1 < 2 from dual
|
||
|
">
|
||
|
<row>
|
||
|
<field name="1 < 2">1</field>
|
||
|
</row>
|
||
|
</resultset>
|
||
|
<?xml version="1.0"?>
|
||
|
|
||
|
<resultset statement="select 1 > 2 from dual
|
||
|
">
|
||
|
<row>
|
||
|
<field name="1 > 2">0</field>
|
||
|
</row>
|
||
|
</resultset>
|
||
|
<?xml version="1.0"?>
|
||
|
|
||
|
<resultset statement="select 1 & 3 from dual
|
||
|
">
|
||
|
<row>
|
||
|
<field name="1 & 3">1</field>
|
||
|
</row>
|
||
|
</resultset>
|
||
|
<?xml version="1.0"?>
|
||
|
|
||
|
<resultset statement="select null from dual
|
||
|
">
|
||
|
<row>
|
||
|
<field name="NULL">NULL</field>
|
||
|
</row>
|
||
|
</resultset>
|
||
|
drop table t1;
|