c#执行oracle 语句怎么写

2024-12-27 10:55:45
推荐回答(1个)
回答1:

using (OracleConnection oraconn = new OracleConnection(strConn))
{
oraconn.Open();
using (OracleCommand oracmd = oraconn.CreateCommand())
{
oracmd.CommandText = SQL语句;
oracmd.ExecuteNonQuery();
}
}