简单 适合初学者
数据库连接部分
SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=chaoshi;Integrated Security=True");
con.Open();
String sql = "select * from [User]";
SqlCommand comm = new SqlCommand(sql, con);
SqlDataReader read = comm.ExecuteReader();
2019-12-21 21:09:50
69KB
C#
登录
1