日期:2014-05-17 浏览次数:20921 次
string insertstring = "insert into T_SPM_TEST(FID) values(:FID)";
OracleConnection conn = new WJPAY.COMMON.OracleConn().OraConn;
OracleCommand cmd = new OracleCommand();
cmd.Connection = conn;
cmd.CommandType = CommandType.Text;
cmd.CommandText = insertstring;
cmd.Parameters.Add(":FID", OracleType.VarChar, 44);
cmd.Parameters[0].Value = "NEWID('1234ECA3')"; // 这个参数如何调入这个函数呢?谢谢
conn.Open();
int result = cmd.ExecuteNonQuery();
conn.Close();