單項(xiàng)選擇題
// 調(diào)用存儲(chǔ)過(guò)程:Create procedure p_list(@id int) SqlCommand cmd = new SqlCommand("p_list", conn); // 存儲(chǔ)過(guò)程名 cmd.CommandType = CommandType.StoredProcedure; // 調(diào)用類型為存儲(chǔ)過(guò)程 cmd.Parameters. ("@id", SqlDbType.Int); cmd.Parameters["@id"].Value = int.Parse(account); // 傳入值,轉(zhuǎn)換為整型
A.CommandType
B.StoredProcedure;
C.Parameters.
D.Int);
E.Parameters["@id"].Value
F.Parse(account);