我想在MS Access 2007数据库中存储一个byte [],我应该使用哪种数据类型?
我已使用备忘录进行了检查,但未妥善保存。
我这样做:
OleDbConnection objConnection = new OleDbConnection("Provider=Microsoft.Ace.OleDb.12.0; Data Source=C:\\Users\\Open Source\\Desktop\\UMS\\UMSS.Accdb");
OleDbCommand insertCommand = new OleDbCommand();
insertCommand.CommandText = "INSERT INTO TEACHER(NAME,DEP,TCHTYPE,NIC,CELLNO,FINGER)VALUES(@NAME,@DEP,@TTYPE,@NICE,@CELL,@FINGER)";
insertCommand.Connection = objConnection;
// insertCommand.Parameters.AddWithValue("@ID", id);
insertCommand.Parameters.AddWithValue("@NAME", name);
insertCommand.Parameters.AddWithValue("@DEP", dep);
insertCommand.Parameters.AddWithValue("@TTYPE", ttype);
insertCommand.Parameters.AddWithValue("@NICE", nic);
insertCommand.Parameters.AddWithValue("@CELL", cell);
insertCommand.Parameters.AddWithValue("@FINGER", finger);
objConnection.Open();
insertCommand.ExecuteNonQuery();
objConnection.Close();
MessageBox.Show("Data Is Entered");// C# Document
我该怎么做?