哪里错了??
Dim sqlstr As String = "select fid from file3 where tname= '" + Label1.Text + "'"
Dim cmd As SqlCommand
cmd = New SqlCommand(sqlstr, myconn)
Dim s As String = cmd.ExecuteScalar()
label3.text = s
Dim sqlstr1 As String = "select count(*) from [file] where filename like '%s%' and fid ='s'"
如果s换成具体中文字符就可以查询,否则显示为0,为什么??