C#怎么通过odbc的方式操作oracle数据库
1个回答
2017-09-13
展开全部
C#怎么通过odbc的方式操作oracle数据库
可以将connstring写进web.config里面调用
代码=====================================
string connstring="Data Source=instancename;user id=username;password=password";
string cmdstring = "insert into testtable(name) values('haha')";
OracleConnection connection = new OracleConnection(connstring);
OracleCommand myOracleCommand = new OracleCommand(cmdstring, connection);
connection.Open();
可以将connstring写进web.config里面调用
代码=====================================
string connstring="Data Source=instancename;user id=username;password=password";
string cmdstring = "insert into testtable(name) values('haha')";
OracleConnection connection = new OracleConnection(connstring);
OracleCommand myOracleCommand = new OracleCommand(cmdstring, connection);
connection.Open();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询