SQLServer
System.Data.SqlClient
Access
System.Data.OleClient
SQLConnection,SQLCommand,SQLDataReader
SQLCommand属性:Connection
CommandText
CommandType
函数:ExecuteReader() select语句
ExecuteNonQuery() insert,update,delete语句
ExecuteScalar()
执行返回唯一值SQL语句
eg: string sql=”select count(*) fromstudent”; //记录个数
string sql=”select max(sage) fromstudent”;
string sql=”select min(sage) from......
阅读全文