私はこのテーブルを持っています:
Items
====
Barcode (text)
Des (text)
Price (double)
d:\Items.csv
高速挿入のために csvファイルを作成しました(12345,computer,120.44).....
私はこのように挿入しようとします(C# WinForm プログラム):
Cmd = Conn.CreateCommand();
SQL = @"INSERT INTO Items SELECT * FROM [Text;DATABASE=" + @"d:" + @"\].[Items.txt];";
Cmd.CommandText = SQL;
Cmd.ExecuteNonQuery();
しかし、私は2つのエラーを得ました:
1. Data type mismatch in criteria expression.
2. The field 'Items.Barcode ' cannot contain a Null value because the Required property for this field is set to True. Enter a value in this field.
これを修正するには?