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

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

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

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

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

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

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

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

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

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

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

Command  "create table T1(C1 datetime)";
Command  "create table T2(C1 datetime)";
Command  "select C1 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1) values (?)" [time "2001-07-07 12:34:56.789"];
Command  "insert into T1 (C1) values (?)" [time "2001-09-09 00:00:00.000"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1) values (?), (?)" [time "2002-10-11 17:34:51.000", time "1999-07-21 13:20:00.600"];
# 他の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 from T1";
Command  "drop table T1";
Command  "drop table T2";

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

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

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

Command  "create table T1(C1 nvarchar(32))";
Command  "create table T2(C1 nvarchar(32))";
Command  "select C1 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1) values (?)" [null];
Command  "insert into T1 (C1) values (?)" ["ホゲ"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1) values (?), (?)" [null, "ピヨ"];
# 他の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 from T1";
Command  "drop table T1";
Command  "drop table T2";

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

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

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

Command  "create table T1(C1 fulltext)";
Command  "create table T2(C1 fulltext)";
Command  "select C1 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1) values (?)" [null];
Command  "insert into T1 (C1) values (?)" [textsjisfile "..\\..\\doc\\rasyoumon.txt"];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1) values (?), (?)" [null, textsjisfile "..\\..\\doc\\RainyNight.txt"];
# 他の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 from T1";
Command  "drop table T1";
Command  "drop table T2";

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

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

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

Command  "create table T1(C1 float)";
Command  "create table T2(C1 float)";
Command  "select C1 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1) values (?)" [null];
Command  "insert into T1 (C1) values (?)" [2.718281];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1) values (?), (?)" [null, -0.789878];
# 他の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 from T1";
Command  "drop table T1";
Command  "drop table T2";

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

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

Command  "create table T1(C1 datetime array [no limit])";
Command  "create table T2(C1 datetime array [no limit])";
Command  "select C1 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1) values (?)" [[null, time "2001-07-07 12:34:56.789"]];
Command  "insert into T1 (C1) values (?)" [[time "2001-09-09 00:00:00.000", time "2001-07-07 12:34:56.789"]];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1) values (?), (?)" [[null, time "2001-09-09 00:00:00.000"], [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 from T2 where C1=?" [[null, time "2001-09-09 00:00:00.000"]];
# 自分自身にinsert...select
Command  "insert into T1 select C1 from T1 where C1=?" [[null, time "2001-07-07 12:34:56.789"]];
Command  "select C1 from T1";
Command  "drop table T1";
Command  "drop table T2";

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

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

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

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

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

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

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

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

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

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

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

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

Command  "create table T1(C1 datetime)";
Command  "create table T2(C1 datetime)";
Command  "select C1 from T1";
# SQLコマンドinsertをテストする
Command  "insert into T1 (C1) values (?)" [time "2001-07-07 12:34:56.789"];
Command  "insert into T1 (C1) values (?)" [null];
# 複数タプルをまとめてinsert
Command  "insert into T2 (C1) values (?), (?)" [time "2002-10-11 17:34:51.000", null];
# 他のtableからinsert...select
Command  "insert into T1 select C1 from T2 where C1=?" [time "2002-10-11 17:34:51.000"];
# 自分自身にinsert...select
Command  "insert into T1 select C1 from T1 where C1=?" [time "2001-07-07 12:34:56.789"];
Command  "select C1 from T1";
Command  "drop table T1";
Command  "drop table T2";

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

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

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

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