求助! 数据库应用问题
数据库等等 都能连通了 selectString = "select 用户名 from table_2 where 用户ID=2"
Dim myConnection As New SqlClient.SqlConnection
myConnection.ConnectionString = conn
Dim myCommand As New SqlClient.SqlCommand(selectString, myConnection)
myConnection.Open()
Dim read As SqlClient.SqlDataReader
read = myCommand.ExecuteReader
TextBox1.Text = ??????
这条查询语句返回的值 要在TextBox1.Text 中显示 ????处 read这个对象应该怎么写?