# select[2]/record/heap
Begin;
BeginTimeSpan;
Initialize;
EndTimeSpan;
# テスト用のDBを作る
InitializeSession "";
Command "create database TESTDB";
TerminateSession;

InitializeSession "TESTDB";
Command  "create table T1(C1 nvarchar(32) hint heap, C2 ntext hint heap)";
Command  "create table T2(C1 nvarchar(32) hint heap, C2 ntext hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" ["ホゲ", textsjisfile "..\\..\\doc\\ricoh.txt"];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" ["ぴよ", textsjisfile "..\\..\\doc\\Teihon.txt"];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt", "ぴよ", textsjisfile "..\\..\\doc\\Teihon.txt"];
# さまざまな条件を課しつつselectする
# さまざまな等号や不等号の検索条件を試す
Command  "select count(*) from T1 where C1=? and C2=?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select count(*) from T1 where C1<? and C2<?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select count(*) from T1 where C1>? and C2>?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select count(*) from T1 where C1<=? and C2<=?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select count(*) from T1 where C1>=? and C2>=?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select count(*) from T1 where C1<>? and C2<>?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null and C2 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null and C2 is not null";
Command  "select count(*) from T1 where C1=? or C2=?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select count(*) from T1 where C1<? or C2<?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select count(*) from T1 where C1>? or C2>?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select count(*) from T1 where C1<=? or C2<=?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select count(*) from T1 where C1>=? or C2>=?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select count(*) from T1 where C1<>? or C2<>?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null or C2 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null or C2 is not null";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 nvarchar(32) array [no limit] hint heap, C2 ntext array [no limit] hint heap)";
Command  "create table T2(C1 nvarchar(32) array [no limit] hint heap, C2 ntext array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [["ほげ", "ホゲ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [["ほげ", "ホゲ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [["ホゲ", "ほげ"], [textsjisfile "..\\..\\doc\\ricoh.txt", textsjisfile "..\\..\\doc\\hello.txt"]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [["ほげ", "ぴよ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [["ほげ", "ホゲ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"], ["ほげ", "ぴよ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext hint heap, C2 fulltext hint heap)";
Command  "create table T2(C1 ntext hint heap, C2 fulltext hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\ricoh.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"];
# さまざまな条件を課しつつselectする
# さまざまな等号や不等号の検索条件を試す
Command  "select count(*) from T1 where C1=? and C2=?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select count(*) from T1 where C1<? and C2<?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select count(*) from T1 where C1>? and C2>?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select count(*) from T1 where C1<=? and C2<=?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select count(*) from T1 where C1>=? and C2>=?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select count(*) from T1 where C1<>? and C2<>?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null and C2 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null and C2 is not null";
Command  "select count(*) from T1 where C1=? or C2=?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select count(*) from T1 where C1<? or C2<?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select count(*) from T1 where C1>? or C2>?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select count(*) from T1 where C1<=? or C2<=?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select count(*) from T1 where C1>=? or C2>=?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select count(*) from T1 where C1<>? or C2<>?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null or C2 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null or C2 is not null";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext array [no limit] hint heap, C2 fulltext array [no limit] hint heap)";
Command  "create table T2(C1 ntext array [no limit] hint heap, C2 fulltext array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\ricoh.txt", textsjisfile "..\\..\\doc\\hello.txt"], [textsjisfile "..\\..\\doc\\rasyoumon.txt", textsjisfile "..\\..\\doc\\kenpou.txt"]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext hint heap, C2 int hint heap)";
Command  "create table T2(C1 fulltext hint heap, C2 int hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\rasyoumon.txt", 555];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", 333];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777, textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", 333];
# さまざまな条件を課しつつselectする
# さまざまな等号や不等号の検索条件を試す
Command  "select count(*) from T1 where C1=? and C2=?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select count(*) from T1 where C1<? and C2<?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select count(*) from T1 where C1>? and C2>?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select count(*) from T1 where C1<=? and C2<=?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select count(*) from T1 where C1>=? and C2>=?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select count(*) from T1 where C1<>? and C2<>?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null and C2 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null and C2 is not null";
Command  "select count(*) from T1 where C1=? or C2=?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select count(*) from T1 where C1<? or C2<?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select count(*) from T1 where C1>? or C2>?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select count(*) from T1 where C1<=? or C2<=?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select count(*) from T1 where C1>=? or C2>=?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select count(*) from T1 where C1<>? or C2<>?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null or C2 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null or C2 is not null";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext array [no limit] hint heap, C2 int array [no limit] hint heap)";
Command  "create table T2(C1 fulltext array [no limit] hint heap, C2 int array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"], [777, 555]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"], [777, 555]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\rasyoumon.txt", textsjisfile "..\\..\\doc\\kenpou.txt"], [555, 777]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"], [777, 333]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"], [777, 555], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"], [777, 333]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int hint heap, C2 float hint heap)";
Command  "create table T2(C1 int hint heap, C2 float hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [777, 3.141592];
Command  "insert into T1 (C1, C2) values (?, ?)" [777, 3.141592];
Command  "insert into T1 (C1, C2) values (?, ?)" [555, 2.718281];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [333, 1.414213];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [777, 3.141592, 333, 1.414213];
# さまざまな条件を課しつつselectする
# さまざまな等号や不等号の検索条件を試す
Command  "select count(*) from T1 where C1=? and C2=?" [777, 3.141592];
Command  "select count(*) from T1 where C1<? and C2<?" [777, 3.141592];
Command  "select count(*) from T1 where C1>? and C2>?" [777, 3.141592];
Command  "select count(*) from T1 where C1<=? and C2<=?" [777, 3.141592];
Command  "select count(*) from T1 where C1>=? and C2>=?" [777, 3.141592];
Command  "select count(*) from T1 where C1<>? and C2<>?" [777, 3.141592];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null and C2 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null and C2 is not null";
Command  "select count(*) from T1 where C1=? or C2=?" [777, 3.141592];
Command  "select count(*) from T1 where C1<? or C2<?" [777, 3.141592];
Command  "select count(*) from T1 where C1>? or C2>?" [777, 3.141592];
Command  "select count(*) from T1 where C1<=? or C2<=?" [777, 3.141592];
Command  "select count(*) from T1 where C1>=? or C2>=?" [777, 3.141592];
Command  "select count(*) from T1 where C1<>? or C2<>?" [777, 3.141592];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null or C2 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null or C2 is not null";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int array [no limit] hint heap, C2 float array [no limit] hint heap)";
Command  "create table T2(C1 int array [no limit] hint heap, C2 float array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[777, 555], [3.141592, 2.718281]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[777, 555], [3.141592, 2.718281]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[555, 777], [2.718281, 3.141592]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[777, 333], [3.141592, 1.414213]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[777, 555], [3.141592, 2.718281], [777, 333], [3.141592, 1.414213]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float hint heap, C2 datetime hint heap)";
Command  "create table T2(C1 float hint heap, C2 datetime hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "insert into T1 (C1, C2) values (?, ?)" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "insert into T1 (C1, C2) values (?, ?)" [2.718281, time "2001-09-09 00:00:00.000"];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [1.414213, time "2002-10-11 17:34:51.000"];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [3.141592, time "2001-07-07 12:34:56.789", 1.414213, time "2002-10-11 17:34:51.000"];
# さまざまな条件を課しつつselectする
# さまざまな等号や不等号の検索条件を試す
Command  "select count(*) from T1 where C1=? and C2=?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<? and C2<?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1>? and C2>?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<=? and C2<=?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1>=? and C2>=?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<>? and C2<>?" [3.141592, time "2001-07-07 12:34:56.789"];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null and C2 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null and C2 is not null";
Command  "select count(*) from T1 where C1=? or C2=?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<? or C2<?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1>? or C2>?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<=? or C2<=?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1>=? or C2>=?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<>? or C2<>?" [3.141592, time "2001-07-07 12:34:56.789"];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null or C2 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null or C2 is not null";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float array [no limit] hint heap, C2 datetime array [no limit] hint heap)";
Command  "create table T2(C1 float array [no limit] hint heap, C2 datetime array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[3.141592, 2.718281], [time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[3.141592, 2.718281], [time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[2.718281, 3.141592], [time "2001-09-09 00:00:00.000", time "2001-07-07 12:34:56.789"]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[3.141592, 1.414213], [time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[3.141592, 2.718281], [time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"], [3.141592, 1.414213], [time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime hint heap, C2 image hint heap)";
Command  "create table T2(C1 datetime hint heap, C2 image hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [time "2001-07-07 12:34:56.789", binaryfile "..\\..\\doc\\rnd10k"];
Command  "insert into T1 (C1, C2) values (?, ?)" [time "2001-07-07 12:34:56.789", binaryfile "..\\..\\doc\\rnd10k"];
Command  "insert into T1 (C1, C2) values (?, ?)" [time "2001-09-09 00:00:00.000", binaryfile "..\\..\\doc\\rnd20k"];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [time "2002-10-11 17:34:51.000", binaryfile "..\\..\\doc\\rnd50k"];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T2.C1=?" [time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"];
# さまざまな条件を課しつつselectする
# さまざまな等号や不等号の検索条件を試す
Command  "select count(*) from T1 where C1=?" [time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<?" [time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1>?" [time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<=?" [time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1>=?" [time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<>?" [time "2001-07-07 12:34:56.789"];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null";
Command  "select count(*) from T1 where C1=?" [time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<?" [time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1>?" [time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<=?" [time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1>=?" [time "2001-07-07 12:34:56.789"];
Command  "select count(*) from T1 where C1<>?" [time "2001-07-07 12:34:56.789"];
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is null";
# is (not) nullを試す
Command  "select count(*) from T1 where C1 is not null";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime array [no limit] hint heap, C2 image array [no limit] hint heap)";
Command  "create table T2(C1 datetime array [no limit] hint heap, C2 image array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[time "2001-09-09 00:00:00.000", time "2001-07-07 12:34:56.789"], [binaryfile "..\\..\\doc\\rnd20k", binaryfile "..\\..\\doc\\rnd10k"]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"], [time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image hint heap, C2 nvarchar(32) hint heap)";
Command  "create table T2(C1 image hint heap, C2 nvarchar(32) hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd10k", "ほげ"];
Command  "insert into T1 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd10k", "ほげ"];
Command  "insert into T1 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd20k", "ホゲ"];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd50k", "ぴよ"];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C2=? and T2.C2=?" ["ほげ", "ぴよ"];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image array [no limit] hint heap, C2 nvarchar(32) array [no limit] hint heap)";
Command  "create table T2(C1 image array [no limit] hint heap, C2 nvarchar(32) array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"], ["ほげ", "ホゲ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"], ["ほげ", "ホゲ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[binaryfile "..\\..\\doc\\rnd20k", binaryfile "..\\..\\doc\\rnd10k"], ["ホゲ", "ほげ"]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"], ["ほげ", "ぴよ"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"], ["ほげ", "ホゲ"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"], ["ほげ", "ぴよ"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 nvarchar(32) hint heap, C2 ntext hint heap)";
Command  "create table T2(C1 nvarchar(32) hint heap, C2 ntext hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" ["ホゲ", textsjisfile "..\\..\\doc\\ricoh.txt"];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [null, null];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1 is null and T1.C2 is null and T2.C1 is null and T2.C2 is null" [, ];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 nvarchar(32) array [no limit] hint heap, C2 ntext array [no limit] hint heap)";
Command  "create table T2(C1 nvarchar(32) array [no limit] hint heap, C2 ntext array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, "ほげ"], [null, textsjisfile "..\\..\\doc\\hello.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, "ほげ"], [null, textsjisfile "..\\..\\doc\\hello.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [["ホゲ", "ほげ"], [textsjisfile "..\\..\\doc\\ricoh.txt", textsjisfile "..\\..\\doc\\hello.txt"]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[null, "ホゲ"], [null, textsjisfile "..\\..\\doc\\ricoh.txt"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[null, "ほげ"], [null, textsjisfile "..\\..\\doc\\hello.txt"], [null, "ホゲ"], [null, textsjisfile "..\\..\\doc\\ricoh.txt"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext hint heap, C2 fulltext hint heap)";
Command  "create table T2(C1 ntext hint heap, C2 fulltext hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\ricoh.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [null, null];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1 is null and T1.C2 is null and T2.C1 is null and T2.C2 is null" [, ];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext array [no limit] hint heap, C2 fulltext array [no limit] hint heap)";
Command  "create table T2(C1 ntext array [no limit] hint heap, C2 fulltext array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, textsjisfile "..\\..\\doc\\hello.txt"], [null, textsjisfile "..\\..\\doc\\kenpou.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, textsjisfile "..\\..\\doc\\hello.txt"], [null, textsjisfile "..\\..\\doc\\kenpou.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\ricoh.txt", textsjisfile "..\\..\\doc\\hello.txt"], [textsjisfile "..\\..\\doc\\rasyoumon.txt", textsjisfile "..\\..\\doc\\kenpou.txt"]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[null, textsjisfile "..\\..\\doc\\ricoh.txt"], [null, textsjisfile "..\\..\\doc\\rasyoumon.txt"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[null, textsjisfile "..\\..\\doc\\hello.txt"], [null, textsjisfile "..\\..\\doc\\kenpou.txt"], [null, textsjisfile "..\\..\\doc\\ricoh.txt"], [null, textsjisfile "..\\..\\doc\\rasyoumon.txt"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext hint heap, C2 int hint heap)";
Command  "create table T2(C1 fulltext hint heap, C2 int hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\rasyoumon.txt", 555];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [null, null];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1 is null and T1.C2 is null and T2.C1 is null and T2.C2 is null" [, ];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext array [no limit] hint heap, C2 int array [no limit] hint heap)";
Command  "create table T2(C1 fulltext array [no limit] hint heap, C2 int array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, textsjisfile "..\\..\\doc\\kenpou.txt"], [null, 777]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, textsjisfile "..\\..\\doc\\kenpou.txt"], [null, 777]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\rasyoumon.txt", textsjisfile "..\\..\\doc\\kenpou.txt"], [555, 777]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[null, textsjisfile "..\\..\\doc\\rasyoumon.txt"], [null, 555]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[null, textsjisfile "..\\..\\doc\\kenpou.txt"], [null, 777], [null, textsjisfile "..\\..\\doc\\rasyoumon.txt"], [null, 555]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int hint heap, C2 float hint heap)";
Command  "create table T2(C1 int hint heap, C2 float hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [555, 2.718281];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [null, null];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1 is null and T1.C2 is null and T2.C1 is null and T2.C2 is null" [, ];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int array [no limit] hint heap, C2 float array [no limit] hint heap)";
Command  "create table T2(C1 int array [no limit] hint heap, C2 float array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, 777], [null, 3.141592]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, 777], [null, 3.141592]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[555, 777], [2.718281, 3.141592]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[null, 555], [null, 2.718281]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[null, 777], [null, 3.141592], [null, 555], [null, 2.718281]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float hint heap, C2 datetime hint heap)";
Command  "create table T2(C1 float hint heap, C2 datetime hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [2.718281, time "2001-09-09 00:00:00.000"];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [null, null];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1 is null and T1.C2 is null and T2.C1 is null and T2.C2 is null" [, ];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float array [no limit] hint heap, C2 datetime array [no limit] hint heap)";
Command  "create table T2(C1 float array [no limit] hint heap, C2 datetime array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, 3.141592], [null, time "2001-07-07 12:34:56.789"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, 3.141592], [null, time "2001-07-07 12:34:56.789"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[2.718281, 3.141592], [time "2001-09-09 00:00:00.000", time "2001-07-07 12:34:56.789"]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[null, 2.718281], [null, time "2001-09-09 00:00:00.000"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[null, 3.141592], [null, time "2001-07-07 12:34:56.789"], [null, 2.718281], [null, time "2001-09-09 00:00:00.000"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime hint heap, C2 image hint heap)";
Command  "create table T2(C1 datetime hint heap, C2 image hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [time "2001-09-09 00:00:00.000", binaryfile "..\\..\\doc\\rnd20k"];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [null, null];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1 is null and T2.C1 is null" [, ];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime array [no limit] hint heap, C2 image array [no limit] hint heap)";
Command  "create table T2(C1 datetime array [no limit] hint heap, C2 image array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, time "2001-07-07 12:34:56.789"], [null, binaryfile "..\\..\\doc\\rnd10k"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, time "2001-07-07 12:34:56.789"], [null, binaryfile "..\\..\\doc\\rnd10k"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[time "2001-09-09 00:00:00.000", time "2001-07-07 12:34:56.789"], [binaryfile "..\\..\\doc\\rnd20k", binaryfile "..\\..\\doc\\rnd10k"]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[null, time "2001-09-09 00:00:00.000"], [null, binaryfile "..\\..\\doc\\rnd20k"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[null, time "2001-07-07 12:34:56.789"], [null, binaryfile "..\\..\\doc\\rnd10k"], [null, time "2001-09-09 00:00:00.000"], [null, binaryfile "..\\..\\doc\\rnd20k"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image hint heap, C2 nvarchar(32) hint heap)";
Command  "create table T2(C1 image hint heap, C2 nvarchar(32) hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd20k", "ホゲ"];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [null, null];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C2 is null and T2.C2 is null" [, ];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image array [no limit] hint heap, C2 nvarchar(32) array [no limit] hint heap)";
Command  "create table T2(C1 image array [no limit] hint heap, C2 nvarchar(32) array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, binaryfile "..\\..\\doc\\rnd10k"], [null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[null, binaryfile "..\\..\\doc\\rnd10k"], [null, "ほげ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[binaryfile "..\\..\\doc\\rnd20k", binaryfile "..\\..\\doc\\rnd10k"], ["ホゲ", "ほげ"]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[null, binaryfile "..\\..\\doc\\rnd20k"], [null, "ホゲ"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[null, binaryfile "..\\..\\doc\\rnd10k"], [null, "ほげ"], [null, binaryfile "..\\..\\doc\\rnd20k"], [null, "ホゲ"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 nvarchar(32) hint heap, C2 ntext hint heap)";
Command  "create table T2(C1 nvarchar(32) hint heap, C2 ntext hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" ["ぴよ", textsjisfile "..\\..\\doc\\Teihon.txt"];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt", "ぴよ", textsjisfile "..\\..\\doc\\Teihon.txt"];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 nvarchar(32) array [no limit] hint heap, C2 ntext array [no limit] hint heap)";
Command  "create table T2(C1 nvarchar(32) array [no limit] hint heap, C2 ntext array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [["ほげ", "ホゲ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [["ほげ", "ホゲ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [["ほげ", null], [textsjisfile "..\\..\\doc\\hello.txt", null]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [["ほげ", "ぴよ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [["ほげ", "ホゲ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"], ["ほげ", "ぴよ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext hint heap, C2 fulltext hint heap)";
Command  "create table T2(C1 ntext hint heap, C2 fulltext hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext array [no limit] hint heap, C2 fulltext array [no limit] hint heap)";
Command  "create table T2(C1 ntext array [no limit] hint heap, C2 fulltext array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\hello.txt", null], [textsjisfile "..\\..\\doc\\kenpou.txt", null]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext hint heap, C2 int hint heap)";
Command  "create table T2(C1 fulltext hint heap, C2 int hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", 333];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777, textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", 333];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext array [no limit] hint heap, C2 int array [no limit] hint heap)";
Command  "create table T2(C1 fulltext array [no limit] hint heap, C2 int array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"], [777, 555]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"], [777, 555]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\kenpou.txt", null], [777, null]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"], [777, 333]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"], [777, 555], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"], [777, 333]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int hint heap, C2 float hint heap)";
Command  "create table T2(C1 int hint heap, C2 float hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [777, 3.141592];
Command  "insert into T1 (C1, C2) values (?, ?)" [777, 3.141592];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [333, 1.414213];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [777, 3.141592, 333, 1.414213];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int array [no limit] hint heap, C2 float array [no limit] hint heap)";
Command  "create table T2(C1 int array [no limit] hint heap, C2 float array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[777, 555], [3.141592, 2.718281]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[777, 555], [3.141592, 2.718281]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[777, null], [3.141592, null]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[777, 333], [3.141592, 1.414213]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[777, 555], [3.141592, 2.718281], [777, 333], [3.141592, 1.414213]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float hint heap, C2 datetime hint heap)";
Command  "create table T2(C1 float hint heap, C2 datetime hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "insert into T1 (C1, C2) values (?, ?)" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [1.414213, time "2002-10-11 17:34:51.000"];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [3.141592, time "2001-07-07 12:34:56.789", 1.414213, time "2002-10-11 17:34:51.000"];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float array [no limit] hint heap, C2 datetime array [no limit] hint heap)";
Command  "create table T2(C1 float array [no limit] hint heap, C2 datetime array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[3.141592, 2.718281], [time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[3.141592, 2.718281], [time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[3.141592, null], [time "2001-07-07 12:34:56.789", null]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[3.141592, 1.414213], [time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[3.141592, 2.718281], [time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"], [3.141592, 1.414213], [time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime hint heap, C2 image hint heap)";
Command  "create table T2(C1 datetime hint heap, C2 image hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [time "2001-07-07 12:34:56.789", binaryfile "..\\..\\doc\\rnd10k"];
Command  "insert into T1 (C1, C2) values (?, ?)" [time "2001-07-07 12:34:56.789", binaryfile "..\\..\\doc\\rnd10k"];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [time "2002-10-11 17:34:51.000", binaryfile "..\\..\\doc\\rnd50k"];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T2.C1=?" [time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime array [no limit] hint heap, C2 image array [no limit] hint heap)";
Command  "create table T2(C1 datetime array [no limit] hint heap, C2 image array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[time "2001-07-07 12:34:56.789", null], [binaryfile "..\\..\\doc\\rnd10k", null]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"], [time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"]];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image hint heap, C2 nvarchar(32) hint heap)";
Command  "create table T2(C1 image hint heap, C2 nvarchar(32) hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd10k", "ほげ"];
Command  "insert into T1 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd10k", "ほげ"];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd50k", "ぴよ"];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C2=? and T2.C2=?" ["ほげ", "ぴよ"];
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image array [no limit] hint heap, C2 nvarchar(32) array [no limit] hint heap)";
Command  "create table T2(C1 image array [no limit] hint heap, C2 nvarchar(32) array [no limit] hint heap)";
# selectの対象となるタプルをinsertする
Command  "insert into T1 (C1, C2) values (?, ?)" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"], ["ほげ", "ホゲ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"], ["ほげ", "ホゲ"]];
Command  "insert into T1 (C1, C2) values (?, ?)" [[binaryfile "..\\..\\doc\\rnd10k", null], ["ほげ", null]];
# 2つ目のtableにもinsertする
Command  "insert into T2 (C1, C2) values (?, ?)" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"], ["ほげ", "ぴよ"]];
# 全体が取れるかどうか、何通りかの方法で試す
Command  "select C1, C2 from T1";
Command  "select * from T1";
Command  "select count(*) from T1";
# 複数tableのjoinをselectする
Command  "select * from T1, T2 where T1.C1=? and T1.C2=? and T2.C1=? and T2.C2=?" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"], ["ほげ", "ホゲ"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"], ["ほげ", "ぴよ"]];
#Command  "drop table T1";
#Command  "drop table T2";

Command  "select * from T1";
Command  "select * from T2";

TerminateSession;
# DBの後始末
#InitializeSession "";
#Command "drop database TESTDB";
#TerminateSession;
# (障害回復を試すためTerminateしない)
End;
