62,046
社区成员
发帖
与我相关
我的任务
分享
SqlConnection con = new SqlConnection();
con.ConnectionString = "data source = .\\Sys;database = xt;uid = 5566;pwd =5566";
con.open();
SqlCommand com = new SqlCommmand();
com.CommandText = "select * from user";
com.Connection = con;
SqlDataReader dr = com.ExcuteReader();
while(dr.Read())
{
if(^^^^^^)
{
^^^^^^^^^
}
}