能详细点吗?刚转到C#
string sql1 = "select b from ComPJ where Dmin='" + textBox1.Text + "'";
SqlCommand cmd1 = new SqlCommand(sql1, conn1);
conn1.Open();
float Jb =(float)Double.Parse( cmd1.ExecuteScalar() + "");
这个只是取到了b