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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TerminateSession;
# DBの後始末
InitializeSession "";
Command "drop database TESTDB";
TerminateSession;
Terminate;
End;
