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

InitializeSession "TESTDB";
Command  "create table T1(C1 nvarchar(32), C2 ntext)";
Command  "create table T2(C1 nvarchar(32), C2 ntext)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" ["ホゲ", textsjisfile "..\\..\\doc\\ricoh.txt"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" ["ぴよ", textsjisfile "..\\..\\doc\\Teihon.txt", "ピヨ", textsjisfile "..\\..\\doc\\takekurabe.txt"];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T2 where C1=? and C2=?" ["ぴよ", textsjisfile "..\\..\\doc\\Teihon.txt"];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T1 where C1=? and C2=?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 nvarchar(32) array [no limit], C2 ntext array [no limit])";
Command  "create table T2(C1 nvarchar(32) array [no limit], C2 ntext array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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\\ricoh.txt", textsjisfile "..\\..\\doc\\hello.txt"]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [["ほげ", "ぴよ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"], ["ぴよ", "ほげ"], [textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\hello.txt"]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [["ほげ", "ぴよ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [["ほげ", "ホゲ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext, C2 fulltext)";
Command  "create table T2(C1 ntext, C2 fulltext)";
Command  "select C1, C2 from T1";
# SQLコマンド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\\ricoh.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", textsjisfile "..\\..\\doc\\takekurabe.txt", textsjisfile "..\\..\\doc\\RainyNight.txt"];
# 他のtableからinsert...select
Command  "insert into T1 select C1, C2 from T2 where C1=? and C2=?" [textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"];
# 自分自身にinsert...select
Command  "insert into T1 select C1, C2 from T1 where C1=? and C2=?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext array [no limit], C2 fulltext array [no limit])";
Command  "create table T2(C1 ntext array [no limit], C2 fulltext array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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\\ricoh.txt", textsjisfile "..\\..\\doc\\hello.txt"], [textsjisfile "..\\..\\doc\\rasyoumon.txt", textsjisfile "..\\..\\doc\\kenpou.txt"]];
# 複数タプルをまとめて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"], [textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\hello.txt"], [textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", textsjisfile "..\\..\\doc\\kenpou.txt"]];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T2 where C1=? and C2=?" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"]];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T1 where C1=? and C2=?" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext, C2 int)";
Command  "create table T2(C1 fulltext, C2 int)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\rasyoumon.txt", 555];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", 333, textsjisfile "..\\..\\doc\\RainyNight.txt", 99999999];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T2 where C1=? and C2=?" [textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", 333];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T1 where C1=? and C2=?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext array [no limit], C2 int array [no limit])";
Command  "create table T2(C1 fulltext array [no limit], C2 int array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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\\rasyoumon.txt", textsjisfile "..\\..\\doc\\kenpou.txt"], [555, 777]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"], [777, 333], [textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", textsjisfile "..\\..\\doc\\kenpou.txt"], [333, 777]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"], [777, 333]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"], [777, 555]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int, C2 float)";
Command  "create table T2(C1 int, C2 float)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [777, 3.141592];
Command  "insert into T1 (C1, C2) values (?, ?)" [555, 2.718281];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [333, 1.414213, 99999999, -0.789878];
# 他のtableからinsert...select
Command  "insert into T1 select C1, C2 from T2 where C1=? and C2=?" [333, 1.414213];
# 自分自身にinsert...select
Command  "insert into T1 select C1, C2 from T1 where C1=? and C2=?" [777, 3.141592];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int array [no limit], C2 float array [no limit])";
Command  "create table T2(C1 int array [no limit], C2 float array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[777, 333], [3.141592, 1.414213], [333, 777], [1.414213, 3.141592]];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T2 where C1=? and C2=?" [[777, 333], [3.141592, 1.414213]];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T1 where C1=? and C2=?" [[777, 555], [3.141592, 2.718281]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float, C2 datetime)";
Command  "create table T2(C1 float, C2 datetime)";
Command  "select C1, C2 from T1";
# SQLコマンド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 (?, ?)" [2.718281, time "2001-09-09 00:00:00.000"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [1.414213, time "2002-10-11 17:34:51.000", -0.789878, time "1999-07-21 13:20:00.600"];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T2 where C1=? and C2=?" [1.414213, time "2002-10-11 17:34:51.000"];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T1 where C1=? and C2=?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float array [no limit], C2 datetime array [no limit])";
Command  "create table T2(C1 float array [no limit], C2 datetime array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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 (?, ?)" [[2.718281, 3.141592], [time "2001-09-09 00:00:00.000", time "2001-07-07 12:34:56.789"]];
# 複数タプルをまとめて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"], [1.414213, 3.141592], [time "2002-10-11 17:34:51.000", time "2001-07-07 12:34:56.789"]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [[3.141592, 1.414213], [time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [[3.141592, 2.718281], [time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime, C2 image)";
Command  "create table T2(C1 datetime, C2 image)";
Command  "select C1, C2 from T1";
# SQLコマンド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-09-09 00:00:00.000", binaryfile "..\\..\\doc\\rnd20k"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [time "2002-10-11 17:34:51.000", binaryfile "..\\..\\doc\\rnd50k", time "1999-07-21 13:20:00.600", binaryfile "..\\..\\doc\\rnd100k"];
# 他のtableからinsert...select
Command  "insert into T1 (C1) select (C1) from T2 where C1=?" [time "2002-10-11 17:34:51.000"];
# 自分自身にinsert...select
Command  "insert into T1 (C1) select (C1) from T1 where C1=?" [time "2001-07-07 12:34:56.789"];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime array [no limit], C2 image array [no limit])";
Command  "create table T2(C1 datetime array [no limit], C2 image array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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-09-09 00:00:00.000", time "2001-07-07 12:34:56.789"], [binaryfile "..\\..\\doc\\rnd20k", binaryfile "..\\..\\doc\\rnd10k"]];
# 複数タプルをまとめて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"], [time "2002-10-11 17:34:51.000", time "2001-07-07 12:34:56.789"], [binaryfile "..\\..\\doc\\rnd50k", binaryfile "..\\..\\doc\\rnd10k"]];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T2 where C1=? and C2=?" [[time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"]];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T1 where C1=? and C2=?" [[time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image, C2 nvarchar(32))";
Command  "create table T2(C1 image, C2 nvarchar(32))";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd10k", "ほげ"];
Command  "insert into T1 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd20k", "ホゲ"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [binaryfile "..\\..\\doc\\rnd50k", "ぴよ", binaryfile "..\\..\\doc\\rnd100k", "ピヨ"];
# 他のtableからinsert...select
Command  "insert into T1 (C2) select (C2) from T2 where C2=?" ["ぴよ"];
# 自分自身にinsert...select
Command  "insert into T1 (C2) select (C2) from T1 where C2=?" ["ほげ"];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image array [no limit], C2 nvarchar(32) array [no limit])";
Command  "create table T2(C1 image array [no limit], C2 nvarchar(32) array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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"], ["ホゲ", "ほげ"]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"], ["ほげ", "ぴよ"], [binaryfile "..\\..\\doc\\rnd50k", binaryfile "..\\..\\doc\\rnd10k"], ["ぴよ", "ほげ"]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"], ["ほげ", "ぴよ"]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"], ["ほげ", "ホゲ"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 nvarchar(32), C2 ntext)";
Command  "create table T2(C1 nvarchar(32), C2 ntext)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" ["ホゲ", textsjisfile "..\\..\\doc\\ricoh.txt"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [null, null, "ピヨ", textsjisfile "..\\..\\doc\\takekurabe.txt"];
# 他のtableからinsert...select
Command  "insert into T1 select C1, C2 from T2 where C1 is null and C2 is null" [];
# 自分自身にinsert...select
Command  "insert into T1 select C1, C2 from T1 where C1 is null and C2 is null" [];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 nvarchar(32) array [no limit], C2 ntext array [no limit])";
Command  "create table T2(C1 nvarchar(32) array [no limit], C2 ntext array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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"]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[null, "ホゲ"], [null, textsjisfile "..\\..\\doc\\ricoh.txt"], ["ぴよ", "ほげ"], [textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\hello.txt"]];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T2 where C1=? and C2=?" [[null, "ホゲ"], [null, textsjisfile "..\\..\\doc\\ricoh.txt"]];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T1 where C1=? and C2=?" [[null, "ほげ"], [null, textsjisfile "..\\..\\doc\\hello.txt"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext, C2 fulltext)";
Command  "create table T2(C1 ntext, C2 fulltext)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\ricoh.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [null, null, textsjisfile "..\\..\\doc\\takekurabe.txt", textsjisfile "..\\..\\doc\\RainyNight.txt"];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T2 where C1 is null and C2 is null" [];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T1 where C1 is null and C2 is null" [];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext array [no limit], C2 fulltext array [no limit])";
Command  "create table T2(C1 ntext array [no limit], C2 fulltext array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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 (?, ?)" [[textsjisfile "..\\..\\doc\\ricoh.txt", textsjisfile "..\\..\\doc\\hello.txt"], [textsjisfile "..\\..\\doc\\rasyoumon.txt", textsjisfile "..\\..\\doc\\kenpou.txt"]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[null, textsjisfile "..\\..\\doc\\ricoh.txt"], [null, textsjisfile "..\\..\\doc\\rasyoumon.txt"], [textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\hello.txt"], [textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", textsjisfile "..\\..\\doc\\kenpou.txt"]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [[null, textsjisfile "..\\..\\doc\\ricoh.txt"], [null, textsjisfile "..\\..\\doc\\rasyoumon.txt"]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [[null, textsjisfile "..\\..\\doc\\hello.txt"], [null, textsjisfile "..\\..\\doc\\kenpou.txt"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext, C2 int)";
Command  "create table T2(C1 fulltext, C2 int)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\rasyoumon.txt", 555];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [null, null, textsjisfile "..\\..\\doc\\RainyNight.txt", 99999999];
# 他のtableからinsert...select
Command  "insert into T1 select C1, C2 from T2 where C1 is null and C2 is null" [];
# 自分自身にinsert...select
Command  "insert into T1 select C1, C2 from T1 where C1 is null and C2 is null" [];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext array [no limit], C2 int array [no limit])";
Command  "create table T2(C1 fulltext array [no limit], C2 int array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[null, textsjisfile "..\\..\\doc\\rasyoumon.txt"], [null, 555], [textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", textsjisfile "..\\..\\doc\\kenpou.txt"], [333, 777]];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T2 where C1=? and C2=?" [[null, textsjisfile "..\\..\\doc\\rasyoumon.txt"], [null, 555]];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T1 where C1=? and C2=?" [[null, textsjisfile "..\\..\\doc\\kenpou.txt"], [null, 777]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int, C2 float)";
Command  "create table T2(C1 int, C2 float)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [555, 2.718281];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [null, null, 99999999, -0.789878];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T2 where C1 is null and C2 is null" [];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T1 where C1 is null and C2 is null" [];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int array [no limit], C2 float array [no limit])";
Command  "create table T2(C1 int array [no limit], C2 float array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[null, 555], [null, 2.718281], [333, 777], [1.414213, 3.141592]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [[null, 555], [null, 2.718281]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [[null, 777], [null, 3.141592]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float, C2 datetime)";
Command  "create table T2(C1 float, C2 datetime)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [null, null, -0.789878, time "1999-07-21 13:20:00.600"];
# 他のtableからinsert...select
Command  "insert into T1 select C1, C2 from T2 where C1 is null and C2 is null" [];
# 自分自身にinsert...select
Command  "insert into T1 select C1, C2 from T1 where C1 is null and C2 is null" [];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float array [no limit], C2 datetime array [no limit])";
Command  "create table T2(C1 float array [no limit], C2 datetime array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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 (?, ?)" [[2.718281, 3.141592], [time "2001-09-09 00:00:00.000", time "2001-07-07 12:34:56.789"]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[null, 2.718281], [null, time "2001-09-09 00:00:00.000"], [1.414213, 3.141592], [time "2002-10-11 17:34:51.000", time "2001-07-07 12:34:56.789"]];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T2 where C1=? and C2=?" [[null, 2.718281], [null, time "2001-09-09 00:00:00.000"]];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T1 where C1=? and C2=?" [[null, 3.141592], [null, time "2001-07-07 12:34:56.789"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime, C2 image)";
Command  "create table T2(C1 datetime, C2 image)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [null, null, time "1999-07-21 13:20:00.600", binaryfile "..\\..\\doc\\rnd100k"];
# 他のtableからinsert...select
Command  "insert into T1 (C1) select (C1) from T2 where C1 is null" [];
# 自分自身にinsert...select
Command  "insert into T1 (C1) select (C1) from T1 where C1 is null" [];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime array [no limit], C2 image array [no limit])";
Command  "create table T2(C1 datetime array [no limit], C2 image array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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 (?, ?)" [[time "2001-09-09 00:00:00.000", time "2001-07-07 12:34:56.789"], [binaryfile "..\\..\\doc\\rnd20k", binaryfile "..\\..\\doc\\rnd10k"]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[null, time "2001-09-09 00:00:00.000"], [null, binaryfile "..\\..\\doc\\rnd20k"], [time "2002-10-11 17:34:51.000", time "2001-07-07 12:34:56.789"], [binaryfile "..\\..\\doc\\rnd50k", binaryfile "..\\..\\doc\\rnd10k"]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [[null, time "2001-09-09 00:00:00.000"], [null, binaryfile "..\\..\\doc\\rnd20k"]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [[null, time "2001-07-07 12:34:56.789"], [null, binaryfile "..\\..\\doc\\rnd10k"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image, C2 nvarchar(32))";
Command  "create table T2(C1 image, C2 nvarchar(32))";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
Command  "insert into T1 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd20k", "ホゲ"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [null, null, binaryfile "..\\..\\doc\\rnd100k", "ピヨ"];
# 他のtableからinsert...select
Command  "insert into T1 (C2) select (C2) from T2 where C2 is null" [];
# 自分自身にinsert...select
Command  "insert into T1 (C2) select (C2) from T1 where C2 is null" [];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image array [no limit], C2 nvarchar(32) array [no limit])";
Command  "create table T2(C1 image array [no limit], C2 nvarchar(32) array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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"], ["ホゲ", "ほげ"]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[null, binaryfile "..\\..\\doc\\rnd20k"], [null, "ホゲ"], [binaryfile "..\\..\\doc\\rnd50k", binaryfile "..\\..\\doc\\rnd10k"], ["ぴよ", "ほげ"]];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T2 where C1=? and C2=?" [[null, binaryfile "..\\..\\doc\\rnd20k"], [null, "ホゲ"]];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T1 where C1=? and C2=?" [[null, binaryfile "..\\..\\doc\\rnd10k"], [null, "ほげ"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 nvarchar(32), C2 ntext)";
Command  "create table T2(C1 nvarchar(32), C2 ntext)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" ["ぴよ", textsjisfile "..\\..\\doc\\Teihon.txt", null, null];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T2 where C1=? and C2=?" ["ぴよ", textsjisfile "..\\..\\doc\\Teihon.txt"];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T1 where C1=? and C2=?" ["ほげ", textsjisfile "..\\..\\doc\\hello.txt"];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 nvarchar(32) array [no limit], C2 ntext array [no limit])";
Command  "create table T2(C1 nvarchar(32) array [no limit], C2 ntext array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [["ほげ", "ぴよ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"], ["ホゲ", null], [textsjisfile "..\\..\\doc\\ricoh.txt", null]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [["ほげ", "ぴよ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [["ほげ", "ホゲ"], [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext, C2 fulltext)";
Command  "create table T2(C1 ntext, C2 fulltext)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", null, null];
# 他のtableからinsert...select
Command  "insert into T1 select C1, C2 from T2 where C1=? and C2=?" [textsjisfile "..\\..\\doc\\Teihon.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"];
# 自分自身にinsert...select
Command  "insert into T1 select C1, C2 from T1 where C1=? and C2=?" [textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\kenpou.txt"];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 ntext array [no limit], C2 fulltext array [no limit])";
Command  "create table T2(C1 ntext array [no limit], C2 fulltext array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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", null], [textsjisfile "..\\..\\doc\\kenpou.txt", null]];
# 複数タプルをまとめて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"], [textsjisfile "..\\..\\doc\\ricoh.txt", null], [textsjisfile "..\\..\\doc\\rasyoumon.txt", null]];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T2 where C1=? and C2=?" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\Teihon.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"]];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T1 where C1=? and C2=?" [[textsjisfile "..\\..\\doc\\hello.txt", textsjisfile "..\\..\\doc\\ricoh.txt"], [textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext, C2 int)";
Command  "create table T2(C1 fulltext, C2 int)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", 333, null, null];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T2 where C1=? and C2=?" [textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt", 333];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T1 where C1=? and C2=?" [textsjisfile "..\\..\\doc\\kenpou.txt", 777];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 fulltext array [no limit], C2 int array [no limit])";
Command  "create table T2(C1 fulltext array [no limit], C2 int array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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", null], [777, null]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"], [777, 333], [textsjisfile "..\\..\\doc\\rasyoumon.txt", null], [555, null]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\KINGARTHURS_ROUNDTABLE.txt"], [777, 333]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [[textsjisfile "..\\..\\doc\\kenpou.txt", textsjisfile "..\\..\\doc\\rasyoumon.txt"], [777, 555]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int, C2 float)";
Command  "create table T2(C1 int, C2 float)";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [777, 3.141592];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [333, 1.414213, null, null];
# 他のtableからinsert...select
Command  "insert into T1 select C1, C2 from T2 where C1=? and C2=?" [333, 1.414213];
# 自分自身にinsert...select
Command  "insert into T1 select C1, C2 from T1 where C1=? and C2=?" [777, 3.141592];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 int array [no limit], C2 float array [no limit])";
Command  "create table T2(C1 int array [no limit], C2 float array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[777, 333], [3.141592, 1.414213], [555, null], [2.718281, null]];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T2 where C1=? and C2=?" [[777, 333], [3.141592, 1.414213]];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T1 where C1=? and C2=?" [[777, 555], [3.141592, 2.718281]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float, C2 datetime)";
Command  "create table T2(C1 float, C2 datetime)";
Command  "select C1, C2 from T1";
# SQLコマンド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 (?, ?)" [null, null];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [1.414213, time "2002-10-11 17:34:51.000", null, null];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T2 where C1=? and C2=?" [1.414213, time "2002-10-11 17:34:51.000"];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select C1, C2 from T1 where C1=? and C2=?" [3.141592, time "2001-07-07 12:34:56.789"];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 float array [no limit], C2 datetime array [no limit])";
Command  "create table T2(C1 float array [no limit], C2 datetime array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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, null], [time "2001-07-07 12:34:56.789", null]];
# 複数タプルをまとめて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"], [2.718281, null], [time "2001-09-09 00:00:00.000", null]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [[3.141592, 1.414213], [time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [[3.141592, 2.718281], [time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime, C2 image)";
Command  "create table T2(C1 datetime, C2 image)";
Command  "select C1, C2 from T1";
# SQLコマンド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 (?, ?)" [null, null];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [time "2002-10-11 17:34:51.000", binaryfile "..\\..\\doc\\rnd50k", null, null];
# 他のtableからinsert...select
Command  "insert into T1 (C1) select (C1) from T2 where C1=?" [time "2002-10-11 17:34:51.000"];
# 自分自身にinsert...select
Command  "insert into T1 (C1) select (C1) from T1 where C1=?" [time "2001-07-07 12:34:56.789"];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 datetime array [no limit], C2 image array [no limit])";
Command  "create table T2(C1 datetime array [no limit], C2 image array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンド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", null], [binaryfile "..\\..\\doc\\rnd10k", null]];
# 複数タプルをまとめて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"], [time "2001-09-09 00:00:00.000", null], [binaryfile "..\\..\\doc\\rnd20k", null]];
# 他のtableからinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T2 where C1=? and C2=?" [[time "2001-07-07 12:34:56.789", time "2002-10-11 17:34:51.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"]];
# 自分自身にinsert...select
Command  "insert into T1 (C1, C2) select (C1, C2) from T1 where C1=? and C2=?" [[time "2001-07-07 12:34:56.789", time "2001-09-09 00:00:00.000"], [binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image, C2 nvarchar(32))";
Command  "create table T2(C1 image, C2 nvarchar(32))";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1, C2) values (?, ?)" [binaryfile "..\\..\\doc\\rnd10k", "ほげ"];
Command  "insert into T1 (C1, C2) values (?, ?)" [null, null];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [binaryfile "..\\..\\doc\\rnd50k", "ぴよ", null, null];
# 他のtableからinsert...select
Command  "insert into T1 (C2) select (C2) from T2 where C2=?" ["ぴよ"];
# 自分自身にinsert...select
Command  "insert into T1 (C2) select (C2) from T1 where C2=?" ["ほげ"];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

Command  "create table T1(C1 image array [no limit], C2 nvarchar(32) array [no limit])";
Command  "create table T2(C1 image array [no limit], C2 nvarchar(32) array [no limit])";
Command  "select C1, C2 from T1";
# SQLコマンドinsertをテストする
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]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1, C2) values (?, ?), (?, ?)" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"], ["ほげ", "ぴよ"], [binaryfile "..\\..\\doc\\rnd20k", null], ["ホゲ", null]];
# 他のtableからinsert...select
Command  "insert into T1 select (C1, C2) from T2 where C1=? and C2=?" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd50k"], ["ほげ", "ぴよ"]];
# 自分自身にinsert...select
Command  "insert into T1 select (C1, C2) from T1 where C1=? and C2=?" [[binaryfile "..\\..\\doc\\rnd10k", binaryfile "..\\..\\doc\\rnd20k"], ["ほげ", "ホゲ"]];
Command  "select C1, C2 from T1";
Command  "drop table T1";
Command  "drop table T2";

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