注册 登录
编程论坛 SQL Server论坛

用c#编写软件时有关于数据库的一些问题

tangximing 发布于 2011-12-03 22:03, 499 次点击
OleDbCommand oledcmd = null;
OleDbConnection oledCon = null;
OleDbDataReader oleRed = null;
getConnection getCon = new getConnection();
oledCon = getCon.OledCon();
oledCon.Open();
string strAdd = "select * from tb_authorinfo ";
oledcmd = new OleDbCommand(strAdd, oledCon);
oleRed=oledcmd.ExecuteReader();
oleRed[0],oleRed[1],oleRed[2]都是什么意思啊?
1 回复
#2
autobot2011-12-04 13:29
那是一个装数据的容器。不过ole有可能不是连接SQLserver 用的,一般C#里连接SQL都用SQLDataReader。
1