Begin;

SetSystemParameter "Plan_TraceOptimizationOutput" "1";
SetSystemParameter "Plan_TraceLevel" "2";

Initialize;
InitializeSession "TESTDB";
Command "create database TESTDB";
TerminateSession;
InitializeSession "TESTDB";
#
# ALL ROWS INDEX -- null値も格納するBtree索引のテスト -- order byと検索条件 : 複合索引・3列
#

Command "create table T(c1 char(4), c2 nchar(4), c3 varchar(4), c4 nvarchar(4), c5 varchar(4) hint nontruncate, c6 nvarchar(4) hint nontruncate, c7 int, c8 bigint, c9 float, c10 datetime, c11 language, c12 decimal(2,0), c1_ar char(4), c2_ar nchar(4), c3_ar varchar(4), c4_ar nvarchar(4), c5_ar varchar(4) hint nontruncate, c6_ar nvarchar(4) hint nontruncate, c7_ar int, c8_ar bigint, c9_ar float, c10_ar datetime, c11_ar language, c12_ar decimal(2,0))";
Command "insert into T values((null), 'あいう', 'abx', (null), 'abx', 'abx', (null), 847865165, 3.141592, (null), 'ja', -1, (null), 'あいう', 'abx', (null), 'abx', 'abx', (null), 847865165, 3.141592, (null), 'ja', -1)";
Command "insert into T values((null), (null), 'aby', 'あいう', (null), 'aby', 123, (null), 1.414213, '2007-01-01 12:34:56.789', (null), 1, (null), (null), 'aby', 'あいう', (null), 'aby', 123, (null), 1.414213, '2007-01-01 12:34:56.789', (null), 1)";
Command "insert into T values((null), 'あえう', (null), 'あえう', 'aby', (null), 456, 123456789, (null), '2007-02-01 12:34:56.789', 'zh', (null), (null), 'あえう', (null), 'あえう', 'aby', (null), 456, 123456789, (null), '2007-02-01 12:34:56.789', 'zh', (null))";
Command "insert into T values('abx', 'あいう', 'aby', 'あえう', 'abx', 'aby', 456, 847865165, 1.414213, '2007-02-01 12:34:56.789', 'ja', 1, 'abx', 'あいう', 'aby', 'あえう', 'abx', 'aby', 456, 847865165, 1.414213, '2007-02-01 12:34:56.789', 'ja', 1)";
Command "insert into T values('abx', (null), 'abx', (null), 'aby', (null), 123, (null), 3.141592, (null), 'zh', (null), 'abx', (null), 'abx', (null), 'aby', (null), 123, (null), 3.141592, (null), 'zh', (null))";
Command "insert into T values('abx', 'あえう', 'abx', 'あいう', (null), 'abx', (null), 123456789, (null), '2007-01-01 12:34:56.789', (null), -1, 'abx', 'あえう', 'abx', 'あいう', (null), 'abx', (null), 123456789, (null), '2007-01-01 12:34:56.789', (null), -1)";
Command "insert into T values('aby', 'あいう', (null), 'あいう', 'aby', 'abx', 123, 847865165, 1.414213, '2007-01-01 12:34:56.789', 'zh', (null), 'aby', 'あいう', (null), 'あいう', 'aby', 'abx', 123, 847865165, 1.414213, '2007-01-01 12:34:56.789', 'zh', (null))";
Command "insert into T values('aby', (null), 'aby', (null), 'abx', (null), (null), 123456789, (null), '2007-02-01 12:34:56.789', (null), 1, 'aby', (null), 'aby', (null), 'abx', (null), (null), 123456789, (null), '2007-02-01 12:34:56.789', (null), 1)";
Command "insert into T values('aby', 'あえう', (null), 'あえう', (null), 'aby', (null), (null), 3.141592, (null), 'ja', -1, 'aby', 'あえう', (null), 'あえう', (null), 'aby', (null), (null), 3.141592, (null), 'ja', -1)";
Command "insert into T values('aby', (null), 'abx', 'あいう', 'abx', (null), 456, 847865165, 3.141592, '2007-01-01 12:34:56.789', 'ja', -1, 'aby', (null), 'abx', 'あいう', 'abx', (null), 456, 847865165, 3.141592, '2007-01-01 12:34:56.789', 'ja', -1)";
Command "insert into T values('abx', 'あえう', 'aby', (null), (null), 'abx', 123, 847865165, (null), (null), 'zh', 1, 'abx', 'あえう', 'aby', (null), (null), 'abx', 123, 847865165, (null), (null), 'zh', 1)";
Command "insert into T values('abx', 'あいう', (null), (null), (null), 'aby', 456, 123456789, 3.141592, '2007-02-01 12:34:56.789', (null), (null), 'abx', 'あいう', (null), (null), (null), 'aby', 456, 123456789, 3.141592, '2007-02-01 12:34:56.789', (null), (null))";
Command "insert into T values((null), 'あいう', 'abx', 'あえう', 'aby', 'abx', 123, 123456789, 1.414213, '2007-02-01 12:34:56.789', 'ja', -1, (null), 'あいう', 'abx', 'あえう', 'aby', 'abx', 123, 123456789, 1.414213, '2007-02-01 12:34:56.789', 'ja', -1)";
Command "insert into T values((null), (null), (null), 'あえう', 'abx', 'abx', (null), (null), (null), '2007-01-01 12:34:56.789', 'zh', (null), (null), (null), (null), 'あえう', 'abx', 'abx', (null), (null), (null), '2007-01-01 12:34:56.789', 'zh', (null))";
Command "insert into T values((null), 'あいう', 'aby', (null), 'aby', 'aby', (null), (null), (null), (null), (null), -1, (null), 'あいう', 'aby', (null), 'aby', 'aby', (null), (null), (null), (null), (null), -1)";
Command "insert into T values('abx', 'あえう', 'abx', (null), 'abx', 'aby', 456, (null), 1.414213, (null), 'zh', 1, 'abx', 'あえう', 'abx', (null), 'abx', 'aby', 456, (null), 1.414213, (null), 'zh', 1)";
Command "insert into T values('aby', 'あいう', 'aby', 'あいう', 'aby', (null), (null), 123456789, 3.141592, (null), 'zh', 1, 'aby', 'あいう', 'aby', 'あいう', 'aby', (null), (null), 123456789, 3.141592, (null), 'zh', 1)";
Command "insert into T values('aby', 'あえう', (null), 'あいう', (null), (null), (null), 847865165, 1.414213, '2007-02-01 12:34:56.789', (null), 1, 'aby', 'あえう', (null), 'あいう', (null), (null), (null), 847865165, 1.414213, '2007-02-01 12:34:56.789', (null), 1)";
Command "insert into T values('abx', (null), 'aby', 'あえう', 'abx', 'abx', 456, (null), (null), '2007-02-01 12:34:56.789', 'ja', (null), 'abx', (null), 'aby', 'あえう', 'abx', 'abx', 456, (null), (null), '2007-02-01 12:34:56.789', 'ja', (null))";
Command "insert into T values((null), 'あえう', 'abx', 'あえう', 'abx', (null), 123, 847865165, 3.141592, '2007-01-01 12:34:56.789', (null), 1, (null), 'あえう', 'abx', 'あえう', 'abx', (null), 123, 847865165, 3.141592, '2007-01-01 12:34:56.789', (null), 1)";
Command "insert into T values('abx', (null), (null), (null), 'aby', 'aby', 123, 123456789, 1.414213, '2007-01-01 12:34:56.789', 'zh', -1, 'abx', (null), (null), (null), 'aby', 'aby', 123, 123456789, 1.414213, '2007-01-01 12:34:56.789', 'zh', -1)";

## index
Command "create index I on T(c6, c7, c1)";
Command "select c6, c7, c1 from T where c6 = 'abx' and c7 = 123 and c1 < 'abx' order by c7 asc";
Command "drop index I";
Command "create index I on T(c5, c7, c12)";
Command "select c5, c7, c12 from T where c5 is not null and c7 is not null and c12 is not null order by c5 asc, c7 asc";
Command "drop index I";
Command "create index I on T(c7, c5, c2)";
Command "select c7, c5, c2 from T where c7 is null and c5 is null and c2 is null order by c7 asc, c2 asc";
Command "drop index I";
Command "create index I on T(c11, c1, c10)";
Command "select c11, c1, c10 from T where c10 is null order by c11 asc";
Command "drop index I";
Command "create index I on T(c11, c1, c10)";
Command "select c11, c1, c10 from T";
Command "drop index I";
Command "create index I on T(c1, c2, c11)";
Command "select c1, c2, c11 from T where c1 = 'abx' and c2 <= 'あいう' and c11 = 'ja' order by c2 desc, c11 desc";
Command "drop index I";
Command "create index I on T(c6, c11, c10)";
Command "select c6, c11, c10 from T where c6 like 'ab%' and c11 > 'zh' and c10 = '2007-02-01 12:34:56.789' order by c11 desc";
Command "drop index I";
Command "create index I on T(c3, c6, c10)";
Command "select c3, c6, c10 from T where c3 like 'ab%' and c6 is null and c10 > '2007-01-01 12:34:56.789' order by c3 desc, c6 asc";
Command "drop index I";
Command "create index I on T(c5, c6, c7)";
Command "select c5, c6, c7 from T where c5 like 'ab%' and c6 is null and c7 = 123 order by c5 desc, c6 desc";
Command "drop index I";
Command "create index I on T(c2, c1, c4)";
Command "select c2, c1, c4 from T where c2 is null and c1 like 'ab%' order by c2 asc";
Command "drop index I";
Command "create index I on T(c7, c4, c11)";
Command "select c7, c4, c11 from T where c4 <> 'あえう' and c11 is null order by c4 asc";
Command "drop index I";
Command "create index I on T(c4, c5, c8)";
Command "select c4, c5, c8 from T where c4 < 'あいう' and c5 like 'ab%' and c8 = 847865165 order by c4 asc";
Command "drop index I";
Command "create index I on T(c2, c10, c9)";
Command "select c2, c10, c9 from T where c2 is null and c10 = '2007-02-01 12:34:56.789' and c9 = 1.414213 order by c2 asc, c10 asc, c9 asc";
Command "drop index I";
Command "create index I on T(c11, c12, c7)";
Command "select c11, c12, c7 from T where c11 is null and c12 <> -1 and c7 = 123 order by c11 desc, c7 asc";
Command "drop index I";
Command "create index I on T(c5, c2, c3)";
Command "select c5, c2, c3 from T where c5 is null and c2 = 'あえう' and c3 <= 'aby'";
Command "drop index I";
Command "create index I on T(c1, c4, c2)";
Command "select c1, c4, c2 from T where c1 > 'abx' and c4 = 'あいう' and c2 like 'あ%う' order by c1 desc, c4 desc, c2 desc";
Command "drop index I";
Command "create index I on T(c9, c1, c2)";
Command "select c9, c1, c2 from T where c9 < 3.141592 and c1 = 'abx' and c2 like 'あ%う' order by c9 desc";
Command "drop index I";
Command "create index I on T(c8, c6, c2)";
Command "select c8, c6, c2 from T where c8 < 847865165 and c6 is null and c2 is not null order by c8 desc";
Command "drop index I";
Command "create index I on T(c7, c2, c1)";
Command "select c7, c2, c1 from T where c7 = 456 and c2 > 'あえう' and c1 like 'ab%' order by c7 desc, c2 desc, c1 desc";
Command "drop index I";
Command "create index I on T(c4, c12, c11)";
Command "select c4, c12, c11 from T where c4 <> 'あえう' and c12 is null and c11 <= 'zh' order by c4 desc, c11 asc";
Command "drop index I";
Command "create index I on T(c7, c3, c11)";
Command "select c7, c3, c11 from T where c7 >= 123 and c3 like 'ab%' and c11 > 'ja' order by c7 desc, c11 desc";
Command "drop index I";
Command "create index I on T(c9, c11, c2)";
Command "select c9, c11, c2 from T where c9 = 1.414213 and c11 = 'zh' order by c9 asc, c11 asc";
Command "drop index I";
Command "create index I on T(c11, c4, c2)";
Command "select c11, c4, c2 from T where c11 = 'ja' and c4 = 'あいう' and c2 = 'あいう' order by c2 asc";
Command "drop index I";
Command "create index I on T(c8, c6, c5)";
Command "select c8, c6, c5 from T where c8 = 847865165 and c6 = 'abx' and c5 <> 'abx' order by c8 desc, c6 asc, c5 desc";
Command "drop index I";
Command "create index I on T(c4, c11, c1)";
Command "select c4, c11, c1 from T where c4 = 'あえう' and c11 = 'zh' and c1 is null";
Command "drop index I";
Command "create index I on T(c9, c4, c10)";
Command "select c9, c4, c10 from T where c9 <> 3.141592 and c10 = '2007-01-01 12:34:56.789' order by c9 asc, c4 asc, c10 desc";
Command "drop index I";
Command "create index I on T(c12, c2, c1)";
Command "select c12, c2, c1 from T where c2 is null and c1 > 'abx' order by c12 desc, c2 asc, c1 desc";
Command "drop index I";
Command "create index I on T(c2, c3, c12)";
Command "select c2, c3, c12 from T where c2 = 'あえう' and c3 <> 'aby' and c12 <> 1 order by c3 asc, c12 asc";
Command "drop index I";
Command "create index I on T(c12, c3, c4)";
Command "select c12, c3, c4 from T where c12 = -1 and c3 = 'abx' and c4 = 'あいう' order by c3 asc, c4 asc";
Command "drop index I";
Command "create index I on T(c4, c3, c11)";
Command "select c4, c3, c11 from T where c4 is null and c11 is not null order by c3 asc, c11 desc";
Command "drop index I";
Command "create index I on T(c2, c9, c8)";
Command "select c2, c9, c8 from T where c2 <> 'あえう' and c9 = 1.414213 and c8 is null order by c2 asc, c9 desc, c8 asc";
Command "drop index I";
Command "create index I on T(c12, c3, c11)";
Command "select c12, c3, c11 from T where c12 is null and c3 = 'aby' and c11 < 'zh' order by c3 asc";
Command "drop index I";
Command "create index I on T(c5, c7, c11)";
Command "select c5, c7, c11 from T where c7 is null and c11 is null order by c7 desc, c11 desc";
Command "drop index I";
Command "create index I on T(c11, c7, c5)";
Command "select c11, c7, c5 from T where c11 > 'ja' and c7 = 123 and c5 is null order by c11 desc, c7 desc";
Command "drop index I";
Command "create index I on T(c10, c7, c2)";
Command "select c10, c7, c2 from T where c10 is not null and c7 = 456 and c2 = 'あえう' order by c10 asc, c7 desc, c2 asc";
Command "drop index I";
Command "create index I on T(c11, c10, c9)";
Command "select c11, c10, c9 from T where c11 = 'ja' and c10 = '2007-01-01 12:34:56.789' and c9 = 3.141592 order by c10 desc, c9 desc";
Command "drop index I";
Command "create index I on T(c9, c12, c10)";
Command "select c9, c12, c10 from T where c9 is null and c12 = 1 and c10 is not null order by c9 asc, c12 asc, c10 asc";
Command "drop index I";
Command "create index I on T(c11, c5, c9)";
Command "select c11, c5, c9 from T where c11 <> 'ja' and c5 is null and c9 = 3.141592 order by c11 asc, c5 desc, c9 desc";
Command "drop index I";
Command "create index I on T(c10, c5, c11)";
Command "select c10, c5, c11 from T where c10 = '2007-01-01 12:34:56.789' and c5 is null order by c10 desc";
Command "drop index I";
Command "create index I on T(c5, c8, c7)";
Command "select c5, c8, c7 from T where c8 is null and c7 = 123 order by c5 asc, c8 desc, c7 asc";
Command "drop index I";
Command "create index I on T(c7, c9, c3)";
Command "select c7, c9, c3 from T where c7 = 123 and c9 = 3.141592 and c3 like 'ab%' order by c9 desc";
Command "drop index I";
Command "create index I on T(c11, c9, c7)";
Command "select c11, c9, c7 from T where c11 = 'ja' and c9 is not null and c7 >= 123 order by c11 desc, c7 asc";
Command "drop index I";
Command "create index I on T(c5, c1, c11)";
Command "select c5, c1, c11 from T where c5 = 'abx' and c1 like 'ab%' and c11 is null order by c11 asc";
Command "drop index I";
Command "create index I on T(c5, c12, c2)";
Command "select c5, c12, c2 from T where c5 is null and c12 = -1 and c2 = 'あいう' order by c5 asc, c12 asc, c2 desc";
Command "drop index I";
Command "create index I on T(c1, c5, c3)";
Command "select c1, c5, c3 from T where c1 is null and c5 <= 'abx' and c3 is null order by c1 asc, c5 asc";
Command "drop index I";
Command "create index I on T(c5, c10, c3)";
Command "select c5, c10, c3 from T where c5 = 'abx' and c10 = '2007-01-01 12:34:56.789' and c3 = 'abx' order by c5 asc, c10 asc, c3 desc";
Command "drop index I";
Command "create index I on T(c10, c7, c6)";
Command "select c10, c7, c6 from T where c10 = '2007-01-01 12:34:56.789' and c7 is null and c6 is null order by c10 asc, c7 asc, c6 desc";
Command "drop index I";
Command "create index I on T(c10, c2, c6)";
Command "select c10, c2, c6 from T where c10 <= '2007-02-01 12:34:56.789' and c2 = 'あえう' and c6 >= 'aby' order by c10 asc";
Command "drop index I";
Command "create index I on T(c11, c5, c10)";
Command "select c11, c5, c10 from T where c11 = 'zh' and c5 = 'aby' and c10 = '2007-02-01 12:34:56.789' order by c11 asc, c5 asc, c10 desc";
Command "drop index I";
Command "create index I on T(c3, c10, c1)";
Command "select c3, c10, c1 from T where c10 <= '2007-01-01 12:34:56.789' and c1 is null order by c3 asc, c10 asc, c1 desc";
Command "drop index I";
Command "create index I on T(c9, c1, c6)";
Command "select c9, c1, c6 from T where c9 = 1.414213 and c1 = 'aby' and c6 is not null order by c9 desc, c1 asc, c6 asc";
Command "drop index I";
Command "create index I on T(c11, c2, c12)";
Command "select c11, c2, c12 from T where c11 = 'zh' and c2 like 'あ%う' and c12 >= 1 order by c11 asc, c2 asc, c12 asc";
Command "drop index I";
Command "create index I on T(c5, c11, c12)";
Command "select c5, c11, c12 from T where c5 < 'abx' and c11 = 'ja' and c12 = -1 order by c5 asc, c11 asc, c12 asc";
Command "drop index I";
Command "create index I on T(c4, c7, c3)";
Command "select c4, c7, c3 from T where c4 > 'あえう' and c7 <> 456 and c3 like 'ab%' order by c4 asc, c7 asc, c3 asc";
Command "drop index I";
Command "create index I on T(c6, c10, c8)";
Command "select c6, c10, c8 from T where c6 is null and c10 = '2007-02-01 12:34:56.789' and c8 is null order by c6 asc, c10 asc";
Command "drop index I";
Command "create index I on T(c1, c2, c7)";
Command "select c1, c2, c7 from T where c1 >= 'abx' and c2 = 'あいう' and c7 = 123 order by c1 desc, c2 desc";
Command "drop index I";
Command "create index I on T(c1, c12, c2)";
Command "select c1, c12, c2 from T where c1 > 'abx' and c12 is null and c2 = 'あいう' order by c1 desc";
Command "drop index I";
Command "create index I on T(c5, c7, c1)";
Command "select c5, c7, c1 from T where c5 like 'ab%' and c7 = 123 and c1 is null order by c5 asc, c7 desc, c1 asc";
Command "drop index I";
Command "create index I on T(c7, c2, c1)";
Command "select c7, c2, c1 from T where c7 = 123 and c2 = 'あいう' and c1 = 'abx' order by c2 desc, c1 asc";
Command "drop index I";
Command "create index I on T(c3, c12, c1)";
Command "select c3, c12, c1 from T where c3 <= 'aby' and c12 = 1 and c1 is null order by c12 desc, c1 asc";
Command "drop index I";
Command "create index I on T(c6, c12, c2)";
Command "select c6, c12, c2 from T where c6 = 'abx' and c12 is null and c2 = 'あいう' order by c6 desc, c12 asc, c2 asc";
Command "drop index I";
Command "create index I on T(c3, c8, c9)";
Command "select c3, c8, c9 from T where c3 = 'aby' and c8 is not null and c9 is null order by c3 desc, c8 asc, c9 desc";
Command "drop index I";
Command "create index I on T(c9, c12, c10)";
Command "select c9, c12, c10 from T where c9 is null and c12 = -1 and c10 = '2007-01-01 12:34:56.789' order by c9 desc, c12 asc, c10 asc";
Command "drop index I";
Command "create index I on T(c11, c7, c1)";
Command "select c11, c7, c1 from T where c11 is null and c7 = 456 and c1 like 'ab%' order by c7 asc, c1 desc";
Command "drop index I";
Command "create index I on T(c11, c6, c2)";
Command "select c11, c6, c2 from T where c11 is null and c2 = 'あえう' order by c11 asc, c6 asc";
Command "drop index I";
Command "create index I on T(c12, c10, c2)";
Command "select c12, c10, c2 from T where c12 = 1 and c10 is null and c2 <> 'あえう' order by c10 asc";
Command "drop index I";
Command "create index I on T(c4, c1, c12)";
Command "select c4, c1, c12 from T where c4 is null and c1 is null and c12 = 1 order by c4 asc, c12 desc";
Command "drop index I";
Command "create index I on T(c12, c10, c1)";
Command "select c12, c10, c1 from T where c12 is null and c1 = 'abx' order by c1 asc";
Command "drop index I";
Command "create index I on T(c5, c10, c7)";
Command "select c5, c10, c7 from T where c5 > 'abx' and c10 = '2007-01-01 12:34:56.789' and c7 = 123 order by c5 desc, c10 asc, c7 desc";
Command "drop index I";
Command "create index I on T(c10, c2, c8)";
Command "select c10, c2, c8 from T where c10 = '2007-02-01 12:34:56.789' and c2 like 'あ%う' and c8 = 123456789 order by c10 desc, c2 desc";
Command "drop index I";
Command "create index I on T(c10, c6, c7)";
Command "select c10, c6, c7 from T where c10 <= '2007-02-01 12:34:56.789' and c6 = 'aby' and c7 <> 456 order by c6 asc, c7 desc";
Command "drop index I";
Command "create index I on T(c4, c7, c10)";
Command "select c4, c7, c10 from T where c4 is null and c7 = 123 and c10 is null order by c4 desc, c10 desc";
Command "drop index I";
Command "create index I on T(c12, c8, c2)";
Command "select c12, c8, c2 from T where c12 is not null and c8 = 123456789 and c2 = 'あえう' order by c8 asc";
Command "drop index I";
Command "create index I on T(c3, c8, c5)";
Command "select c3, c8, c5 from T where c3 = 'aby' and c8 = 123456789 and c5 > 'aby' order by c3 asc, c8 desc, c5 asc";
Command "drop index I";
Command "create index I on T(c8, c1, c5)";
Command "select c8, c1, c5 from T where c8 is not null and c1 <= 'abx' and c5 = 'abx'";
Command "drop index I";
Command "create index I on T(c9, c8, c12)";
Command "select c9, c8, c12 from T where c9 = 3.141592 and c12 = -1 order by c8 desc, c12 desc";
Command "drop index I";
Command "create index I on T(c8, c7, c11)";
Command "select c8, c7, c11 from T where c8 < 847865165 and c7 = 123 order by c11 desc";
Command "drop index I";
Command "create index I on T(c1, c2, c3)";
Command "select c1, c2, c3 from T where c2 = 'あえう' and c3 is null order by c2 desc";
Command "drop index I";
Command "create index I on T(c3, c4, c9)";
Command "select c3, c4, c9 from T where c3 = 'aby' and c4 = 'あえう' and c9 = 1.414213 order by c4 desc, c9 asc";
Command "drop index I";
Command "create index I on T(c10, c4, c5)";
Command "select c10, c4, c5 from T where c10 <= '2007-01-01 12:34:56.789' and c4 = 'あいう' and c5 = 'abx' order by c10 asc, c4 asc";
Command "drop index I";
Command "create index I on T(c11, c1, c2)";
Command "select c11, c1, c2 from T where c11 is null and c1 = 'abx' and c2 = 'あいう' order by c11 desc, c2 desc";
Command "drop index I";

## all rows index
Command "create all rows index I on T(c3_ar, c10_ar, c4_ar)";
Command "select c3_ar, c10_ar, c4_ar from T where c3_ar = 'aby' and c10_ar = '2007-02-01 12:34:56.789' and c4_ar is null order by c3_ar desc, c4_ar desc";
Command "drop index I";
Command "create all rows index I on T(c9_ar, c4_ar, c10_ar)";
Command "select c9_ar, c4_ar, c10_ar from T where c9_ar <= 1.414213 and c4_ar <= 'あえう' and c10_ar = '2007-02-01 12:34:56.789' order by c9_ar asc, c10_ar asc";
Command "drop index I";
Command "create all rows index I on T(c2_ar, c12_ar, c3_ar)";
Command "select c2_ar, c12_ar, c3_ar from T where c2_ar = 'あいう' and c12_ar = -1 and c3_ar = 'abx' order by c2_ar desc, c12_ar desc, c3_ar desc";
Command "drop index I";
Command "create all rows index I on T(c4_ar, c10_ar, c5_ar)";
Command "select c4_ar, c10_ar, c5_ar from T where c4_ar is null and c10_ar is null and c5_ar is null order by c5_ar desc";
Command "drop index I";
Command "create all rows index I on T(c9_ar, c3_ar, c8_ar)";
Command "select c9_ar, c3_ar, c8_ar from T where c9_ar = 1.414213 and c3_ar = 'aby' and c8_ar = 123456789 order by c3_ar desc, c8_ar asc";
Command "drop index I";
Command "create all rows index I on T(c7_ar, c11_ar, c6_ar)";
Command "select c7_ar, c11_ar, c6_ar from T where c7_ar = 456 and c11_ar is null order by c7_ar desc, c11_ar asc";
Command "drop index I";
Command "create all rows index I on T(c10_ar, c6_ar, c4_ar)";
Command "select c10_ar, c6_ar, c4_ar from T where c10_ar = '2007-01-01 12:34:56.789' and c6_ar <> 'abx' and c4_ar <= 'あいう' order by c10_ar asc, c4_ar asc";
Command "drop index I";
Command "create all rows index I on T(c6_ar, c9_ar, c7_ar)";
Command "select c6_ar, c9_ar, c7_ar from T where c6_ar = 'abx' and c9_ar >= 3.141592 and c7_ar is null order by c6_ar desc, c9_ar asc";
Command "drop index I";
Command "create all rows index I on T(c3_ar, c8_ar, c9_ar)";
Command "select c3_ar, c8_ar, c9_ar from T where c3_ar is null and c8_ar = 123456789 and c9_ar is not null order by c8_ar asc, c9_ar desc";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c3_ar, c2_ar)";
Command "select c11_ar, c3_ar, c2_ar from T where c11_ar is null order by c11_ar asc, c3_ar asc, c2_ar desc";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c3_ar, c2_ar)";
Command "select c11_ar, c3_ar, c2_ar from T";
Command "drop index I";
Command "create all rows index I on T(c12_ar, c11_ar, c1_ar)";
Command "select c12_ar, c11_ar, c1_ar from T where c12_ar > -1 and c11_ar = 'ja' and c1_ar is null order by c11_ar desc, c1_ar asc";
Command "drop index I";
Command "create all rows index I on T(c8_ar, c2_ar, c12_ar)";
Command "select c8_ar, c2_ar, c12_ar from T where c2_ar = 'あいう' and c12_ar <> -1 order by c12_ar desc";
Command "drop index I";
Command "create all rows index I on T(c6_ar, c1_ar, c3_ar)";
Command "select c6_ar, c1_ar, c3_ar from T where c6_ar <> 'abx' and c1_ar like 'ab%' and c3_ar is null order by c1_ar desc, c3_ar desc";
Command "drop index I";
Command "create all rows index I on T(c2_ar, c9_ar, c8_ar)";
Command "select c2_ar, c9_ar, c8_ar from T where c2_ar >= 'あえう' and c9_ar = 1.414213 and c8_ar is not null order by c2_ar desc, c9_ar desc, c8_ar desc";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c8_ar, c4_ar)";
Command "select c11_ar, c8_ar, c4_ar from T where c11_ar is not null and c8_ar is null and c4_ar like 'あ%う' order by c8_ar desc, c4_ar desc";
Command "drop index I";
Command "create all rows index I on T(c4_ar, c8_ar, c10_ar)";
Command "select c4_ar, c8_ar, c10_ar from T where c4_ar > 'あいう' and c8_ar = 847865165 and c10_ar >= '2007-01-01 12:34:56.789' order by c4_ar desc";
Command "drop index I";
Command "create all rows index I on T(c9_ar, c10_ar, c12_ar)";
Command "select c9_ar, c10_ar, c12_ar from T where c9_ar = 3.141592 and c10_ar < '2007-01-01 12:34:56.789' and c12_ar = -1 order by c9_ar desc, c10_ar asc, c12_ar asc";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c4_ar, c1_ar)";
Command "select c11_ar, c4_ar, c1_ar from T where c11_ar = 'ja' and c4_ar = 'あいう' and c1_ar <> 'abx' order by c4_ar desc";
Command "drop index I";
Command "create all rows index I on T(c7_ar, c11_ar, c9_ar)";
Command "select c7_ar, c11_ar, c9_ar from T where c7_ar = 456 and c11_ar is null and c9_ar = 1.414213 order by c7_ar desc, c11_ar desc, c9_ar asc";
Command "drop index I";
Command "create all rows index I on T(c5_ar, c4_ar, c8_ar)";
Command "select c5_ar, c4_ar, c8_ar from T where c5_ar = 'aby' and c4_ar like 'あ%う' and c8_ar > 123456789 order by c8_ar asc";
Command "drop index I";
Command "create all rows index I on T(c10_ar, c9_ar, c1_ar)";
Command "select c10_ar, c9_ar, c1_ar from T where c10_ar = '2007-02-01 12:34:56.789' and c9_ar = 1.414213 and c1_ar is null order by c10_ar desc, c9_ar asc, c1_ar asc";
Command "drop index I";
Command "create all rows index I on T(c6_ar, c10_ar, c5_ar)";
Command "select c6_ar, c10_ar, c5_ar from T where c6_ar is null and c5_ar like 'ab%' order by c6_ar desc, c10_ar asc";
Command "drop index I";
Command "create all rows index I on T(c7_ar, c3_ar, c1_ar)";
Command "select c7_ar, c3_ar, c1_ar from T where c3_ar is null and c1_ar = 'aby' order by c7_ar desc";
Command "drop index I";
Command "create all rows index I on T(c8_ar, c11_ar, c7_ar)";
Command "select c8_ar, c11_ar, c7_ar from T where c8_ar <= 847865165 and c11_ar = 'ja' and c7_ar = 123 order by c8_ar asc, c11_ar asc, c7_ar desc";
Command "drop index I";
Command "create all rows index I on T(c8_ar, c2_ar, c4_ar)";
Command "select c8_ar, c2_ar, c4_ar from T where c8_ar is null and c4_ar = 'あえう' order by c8_ar desc, c4_ar asc";
Command "drop index I";
Command "create all rows index I on T(c1_ar, c7_ar, c8_ar)";
Command "select c1_ar, c7_ar, c8_ar from T where c1_ar is null and c7_ar < 123 and c8_ar = 847865165 order by c1_ar desc, c7_ar desc, c8_ar desc";
Command "drop index I";
Command "create all rows index I on T(c10_ar, c6_ar, c3_ar)";
Command "select c10_ar, c6_ar, c3_ar from T where c10_ar = '2007-01-01 12:34:56.789' and c6_ar is null and c3_ar is null order by c10_ar asc, c6_ar asc";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c5_ar, c9_ar)";
Command "select c11_ar, c5_ar, c9_ar from T where c11_ar = 'ja' and c5_ar like 'ab%' and c9_ar is not null order by c11_ar desc, c5_ar desc";
Command "drop index I";
Command "create all rows index I on T(c10_ar, c7_ar, c1_ar)";
Command "select c10_ar, c7_ar, c1_ar from T where c10_ar < '2007-01-01 12:34:56.789' and c1_ar >= 'abx' order by c10_ar desc, c7_ar desc";
Command "drop index I";
Command "create all rows index I on T(c4_ar, c8_ar, c1_ar)";
Command "select c4_ar, c8_ar, c1_ar from T where c4_ar = 'あえう' and c8_ar <> 123456789 and c1_ar = 'aby' order by c4_ar asc, c8_ar desc";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c10_ar, c5_ar)";
Command "select c11_ar, c10_ar, c5_ar from T where c11_ar = 'ja' and c10_ar is null and c5_ar is null order by c11_ar desc, c10_ar asc";
Command "drop index I";
Command "create all rows index I on T(c6_ar, c9_ar, c1_ar)";
Command "select c6_ar, c9_ar, c1_ar from T where c6_ar is null and c9_ar is null and c1_ar > 'aby' order by c6_ar desc, c9_ar asc, c1_ar desc";
Command "drop index I";
Command "create all rows index I on T(c3_ar, c6_ar, c11_ar)";
Command "select c3_ar, c6_ar, c11_ar from T where c3_ar = 'abx' and c6_ar like 'ab%' and c11_ar = 'ja' order by c3_ar desc, c6_ar asc";
Command "drop index I";
Command "create all rows index I on T(c3_ar, c11_ar, c12_ar)";
Command "select c3_ar, c11_ar, c12_ar from T where c11_ar is null and c12_ar = -1 order by c3_ar desc, c12_ar asc";
Command "drop index I";
Command "create all rows index I on T(c3_ar, c7_ar, c5_ar)";
Command "select c3_ar, c7_ar, c5_ar from T where c3_ar is null and c7_ar = 456 and c5_ar = 'aby' order by c3_ar desc, c7_ar desc, c5_ar asc";
Command "drop index I";
Command "create all rows index I on T(c4_ar, c2_ar, c9_ar)";
Command "select c4_ar, c2_ar, c9_ar from T where c4_ar <= 'あえう' and c2_ar < 'あえう' and c9_ar is null order by c4_ar desc";
Command "drop index I";
Command "create all rows index I on T(c9_ar, c6_ar, c1_ar)";
Command "select c9_ar, c6_ar, c1_ar from T where c9_ar is not null and c6_ar like 'ab%' and c1_ar = 'aby' order by c9_ar asc, c1_ar desc";
Command "drop index I";
Command "create all rows index I on T(c2_ar, c6_ar, c4_ar)";
Command "select c2_ar, c6_ar, c4_ar from T where c2_ar > 'あえう' and c6_ar is not null and c4_ar < 'あえう' order by c2_ar desc, c6_ar asc";
Command "drop index I";
Command "create all rows index I on T(c8_ar, c4_ar, c7_ar)";
Command "select c8_ar, c4_ar, c7_ar from T where c8_ar is null and c4_ar like 'あ%う' and c7_ar = 123 order by c8_ar desc, c4_ar asc";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c1_ar, c4_ar)";
Command "select c11_ar, c1_ar, c4_ar from T where c1_ar is not null order by c1_ar desc, c4_ar desc";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c1_ar, c4_ar)";
Command "select c11_ar, c1_ar, c4_ar from T";
Command "drop index I";
Command "create all rows index I on T(c5_ar, c4_ar, c7_ar)";
Command "select c5_ar, c4_ar, c7_ar from T where c5_ar is null and c4_ar is null and c7_ar >= 456 order by c4_ar desc, c7_ar desc";
Command "drop index I";
Command "create all rows index I on T(c7_ar, c2_ar, c4_ar)";
Command "select c7_ar, c2_ar, c4_ar from T where c7_ar is null and c2_ar is null and c4_ar = 'あえう' order by c7_ar asc, c2_ar desc, c4_ar asc";
Command "drop index I";
Command "create all rows index I on T(c1_ar, c5_ar, c4_ar)";
Command "select c1_ar, c5_ar, c4_ar from T where c1_ar is null and c5_ar is null and c4_ar is null order by c1_ar asc, c5_ar desc, c4_ar asc";
Command "drop index I";
Command "create all rows index I on T(c1_ar, c8_ar, c9_ar)";
Command "select c1_ar, c8_ar, c9_ar from T where c1_ar < 'aby' and c8_ar = 123456789 order by c1_ar asc, c9_ar desc";
Command "drop index I";
Command "create all rows index I on T(c1_ar, c5_ar, c3_ar)";
Command "select c1_ar, c5_ar, c3_ar from T where c1_ar like 'ab%' and c3_ar like 'ab%' order by c1_ar asc, c5_ar asc, c3_ar asc";
Command "drop index I";
Command "create all rows index I on T(c9_ar, c8_ar, c2_ar)";
Command "select c9_ar, c8_ar, c2_ar from T where c9_ar is null and c8_ar > 847865165 and c2_ar = 'あいう' order by c9_ar asc, c2_ar desc";
Command "drop index I";
Command "create all rows index I on T(c2_ar, c4_ar, c9_ar)";
Command "select c2_ar, c4_ar, c9_ar from T where c2_ar = 'あいう' and c4_ar like 'あ%う' and c9_ar is null order by c4_ar asc, c9_ar desc";
Command "drop index I";
Command "create all rows index I on T(c3_ar, c4_ar, c7_ar)";
Command "select c3_ar, c4_ar, c7_ar from T where c3_ar < 'aby' and c4_ar like 'あ%う' and c7_ar = 456 order by c3_ar asc, c7_ar desc";
Command "drop index I";
Command "create all rows index I on T(c1_ar, c12_ar, c6_ar)";
Command "select c1_ar, c12_ar, c6_ar from T where c1_ar is not null and c12_ar = 1 and c6_ar <= 'aby' order by c1_ar asc";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c7_ar, c2_ar)";
Command "select c11_ar, c7_ar, c2_ar from T where c11_ar is null and c7_ar is null and c2_ar < 'あいう' order by c11_ar desc";
Command "drop index I";
Command "create all rows index I on T(c1_ar, c7_ar, c11_ar)";
Command "select c1_ar, c7_ar, c11_ar from T where c1_ar is null and c7_ar > 123 and c11_ar = 'ja' order by c1_ar desc, c7_ar asc, c11_ar desc";
Command "drop index I";
Command "create all rows index I on T(c10_ar, c1_ar, c9_ar)";
Command "select c10_ar, c1_ar, c9_ar from T where c10_ar = '2007-01-01 12:34:56.789' and c1_ar >= 'abx' and c9_ar = 3.141592 order by c1_ar asc";
Command "drop index I";
Command "create all rows index I on T(c6_ar, c1_ar, c10_ar)";
Command "select c6_ar, c1_ar, c10_ar from T where c6_ar is null and c1_ar = 'aby' and c10_ar = '2007-02-01 12:34:56.789' order by c1_ar desc";
Command "drop index I";
Command "create all rows index I on T(c10_ar, c4_ar, c3_ar)";
Command "select c10_ar, c4_ar, c3_ar from T where c10_ar = '2007-02-01 12:34:56.789' and c4_ar is null order by c4_ar asc, c3_ar desc";
Command "drop index I";
Command "create all rows index I on T(c5_ar, c8_ar, c12_ar)";
Command "select c5_ar, c8_ar, c12_ar from T where c5_ar is null and c8_ar = 847865165 and c12_ar is null order by c5_ar asc, c8_ar asc";
Command "drop index I";
Command "create all rows index I on T(c5_ar, c1_ar, c4_ar)";
Command "select c5_ar, c1_ar, c4_ar from T where c5_ar like 'ab%' and c1_ar like 'ab%' and c4_ar is null order by c1_ar asc";
Command "drop index I";
Command "create all rows index I on T(c6_ar, c1_ar, c11_ar)";
Command "select c6_ar, c1_ar, c11_ar from T where c6_ar is null and c1_ar = 'aby' and c11_ar = 'zh' order by c1_ar asc";
Command "drop index I";
Command "create all rows index I on T(c7_ar, c2_ar, c3_ar)";
Command "select c7_ar, c2_ar, c3_ar from T where c7_ar is null and c3_ar is null order by c7_ar asc, c2_ar desc";
Command "drop index I";
Command "create all rows index I on T(c4_ar, c8_ar, c3_ar)";
Command "select c4_ar, c8_ar, c3_ar from T where c4_ar = 'あいう' and c8_ar = 847865165 and c3_ar < 'abx' order by c4_ar desc, c8_ar desc, c3_ar asc";
Command "drop index I";
Command "create all rows index I on T(c5_ar, c4_ar, c6_ar)";
Command "select c5_ar, c4_ar, c6_ar from T where c4_ar = 'あえう' and c6_ar <= 'aby' order by c5_ar desc, c4_ar desc, c6_ar asc";
Command "drop index I";
Command "create all rows index I on T(c10_ar, c5_ar, c6_ar)";
Command "select c10_ar, c5_ar, c6_ar from T where c5_ar like 'ab%' and c6_ar like 'ab%' order by c5_ar desc";
Command "drop index I";
Command "create all rows index I on T(c10_ar, c9_ar, c11_ar)";
Command "select c10_ar, c9_ar, c11_ar from T where c10_ar is null and c9_ar = 1.414213 and c11_ar is null order by c9_ar asc, c11_ar asc";
Command "drop index I";
Command "create all rows index I on T(c12_ar, c4_ar, c10_ar)";
Command "select c12_ar, c4_ar, c10_ar from T where c12_ar > 1 and c4_ar like 'あ%う' and c10_ar = '2007-02-01 12:34:56.789' order by c4_ar asc, c10_ar desc";
Command "drop index I";
Command "create all rows index I on T(c3_ar, c9_ar, c10_ar)";
Command "select c3_ar, c9_ar, c10_ar from T where c3_ar is null and c9_ar = 3.141592 and c10_ar is not null order by c9_ar asc, c10_ar desc";
Command "drop index I";
Command "create all rows index I on T(c6_ar, c10_ar, c7_ar)";
Command "select c6_ar, c10_ar, c7_ar from T where c6_ar like 'ab%' and c10_ar = '2007-01-01 12:34:56.789' and c7_ar is null order by c6_ar desc, c10_ar desc, c7_ar asc";
Command "drop index I";
Command "create all rows index I on T(c12_ar, c5_ar, c7_ar)";
Command "select c12_ar, c5_ar, c7_ar from T where c12_ar = 1 and c5_ar like 'ab%' and c7_ar = 456 order by c12_ar asc, c5_ar desc, c7_ar asc";
Command "drop index I";
Command "create all rows index I on T(c6_ar, c12_ar, c2_ar)";
Command "select c6_ar, c12_ar, c2_ar from T where c6_ar is null and c12_ar <= -1 and c2_ar < 'あいう' order by c6_ar desc, c12_ar asc, c2_ar desc";
Command "drop index I";
Command "create all rows index I on T(c6_ar, c3_ar, c12_ar)";
Command "select c6_ar, c3_ar, c12_ar from T where c6_ar like 'ab%' and c3_ar like 'ab%' and c12_ar <= 1 order by c6_ar desc, c12_ar asc";
Command "drop index I";
Command "create all rows index I on T(c9_ar, c6_ar, c5_ar)";
Command "select c9_ar, c6_ar, c5_ar from T where c6_ar = 'abx' and c5_ar = 'abx' order by c9_ar asc";
Command "drop index I";
Command "create all rows index I on T(c3_ar, c5_ar, c6_ar)";
Command "select c3_ar, c5_ar, c6_ar from T where c3_ar is not null and c6_ar = 'aby' order by c3_ar asc, c5_ar desc, c6_ar asc";
Command "drop index I";
Command "create all rows index I on T(c2_ar, c3_ar, c4_ar)";
Command "select c2_ar, c3_ar, c4_ar from T where c2_ar >= 'あいう' and c3_ar is null and c4_ar like 'あ%う' order by c2_ar asc, c4_ar desc";
Command "drop index I";
Command "create all rows index I on T(c2_ar, c5_ar, c6_ar)";
Command "select c2_ar, c5_ar, c6_ar from T where c2_ar = 'あいう' and c5_ar >= 'abx' and c6_ar < 'abx' order by c2_ar desc, c6_ar desc";
Command "drop index I";
Command "create all rows index I on T(c3_ar, c11_ar, c10_ar)";
Command "select c3_ar, c11_ar, c10_ar from T where c3_ar = 'aby' and c11_ar is null and c10_ar = '2007-02-01 12:34:56.789' order by c3_ar asc, c10_ar desc";
Command "drop index I";
Command "create all rows index I on T(c9_ar, c11_ar, c7_ar)";
Command "select c9_ar, c11_ar, c7_ar from T where c9_ar < 1.414213 and c11_ar = 'zh' and c7_ar is null order by c9_ar asc, c11_ar desc, c7_ar asc";
Command "drop index I";
Command "create all rows index I on T(c12_ar, c9_ar, c5_ar)";
Command "select c12_ar, c9_ar, c5_ar from T where c12_ar < -1 and c9_ar is null order by c12_ar asc";
Command "drop index I";
Command "create all rows index I on T(c1_ar, c12_ar, c4_ar)";
Command "select c1_ar, c12_ar, c4_ar from T where c1_ar = 'abx' and c12_ar = -1 and c4_ar is null order by c1_ar asc";
Command "drop index I";
Command "create all rows index I on T(c8_ar, c11_ar, c7_ar)";
Command "select c8_ar, c11_ar, c7_ar from T where c8_ar = 123456789 and c11_ar = 'zh' and c7_ar = 456 order by c8_ar asc, c7_ar asc";
Command "drop index I";
Command "create all rows index I on T(c8_ar, c3_ar, c5_ar)";
Command "select c8_ar, c3_ar, c5_ar from T where c3_ar = 'aby' and c5_ar = 'aby'";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c6_ar, c12_ar)";
Command "select c11_ar, c6_ar, c12_ar from T where c6_ar = 'abx' and c12_ar is not null order by c11_ar desc";
Command "drop index I";
Command "create all rows index I on T(c2_ar, c4_ar, c1_ar)";
Command "select c2_ar, c4_ar, c1_ar from T where c2_ar like 'あ%う' and c4_ar <= 'あえう' and c1_ar = 'aby' order by c2_ar desc, c4_ar desc, c1_ar asc";
Command "drop index I";
Command "create all rows index I on T(c10_ar, c8_ar, c3_ar)";
Command "select c10_ar, c8_ar, c3_ar from T where c10_ar is null and c8_ar is null and c3_ar is null order by c10_ar asc, c8_ar desc";
Command "drop index I";
Command "create all rows index I on T(c11_ar, c7_ar, c3_ar)";
Command "select c11_ar, c7_ar, c3_ar from T where c11_ar = 'ja' and c7_ar = 123 and c3_ar is not null order by c11_ar asc, c7_ar desc, c3_ar desc";
Command "drop index I";
Command "create all rows index I on T(c8_ar, c4_ar, c9_ar)";
Command "select c8_ar, c4_ar, c9_ar from T where c8_ar = 123456789 and c4_ar = 'あえう' and c9_ar = 1.414213 order by c8_ar asc, c4_ar asc";
Command "drop index I";
Command "create all rows index I on T(c5_ar, c4_ar, c11_ar)";
Command "select c5_ar, c4_ar, c11_ar from T where c5_ar is null and c4_ar = 'あえう' and c11_ar is null order by c4_ar asc, c11_ar desc";
Command "drop index I";
Command "create all rows index I on T(c7_ar, c4_ar, c11_ar)";
Command "select c7_ar, c4_ar, c11_ar from T where c7_ar is null and c4_ar < 'あえう' and c11_ar <> 'zh' order by c7_ar asc, c4_ar asc";
Command "drop index I";
Command "create all rows index I on T(c12_ar, c1_ar, c6_ar)";
Command "select c12_ar, c1_ar, c6_ar from T where c12_ar < 1 and c1_ar < 'aby' and c6_ar = 'aby' order by c12_ar asc, c1_ar desc";
Command "drop index I";
Command "drop table T";
TerminateSession;
InitializeSession "TESTDB";
Command "drop database TESTDB";
TerminateSession;
Terminate;
End;
