代码 节选 Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Me.SqlDataAdapter1.SelectCommand.Parameters("@auid").Value = TextBox1.Text Me.SqlDataAdapter1.Fill(DataSet11) End Sub
SQL 语句 如下 SELECT au_id, au_lname, au_fname, phone, address FROM authors WHERE (au_id = @auid)