请教个关于DATATABLE的问题
vb.net吧
全部回复
仅看楼主
level 1
哭笑一生 楼主
Dim kwTable As DataTable
Dim foundRows As DataRow()
Dim tmpstr As String
为什么 foundRows = kwTable.Select(keyword ='tmpstr')(这个是错的)
或者foundRows = kwTable.Select(“keyword ='tmpstr'”)不能代替
foundRows = kwTable.Select("keyword = '" & Replace(tmpstr, "'", "''") & "'")(这个是对的)
2017年06月18日 09点06分 1
level 11
你需要知道啥是变量,啥是字符串,咋样拼接查询语句
2017年06月18日 17点06分 2
level 1
哭笑一生 楼主
发现是自己犯了低级错误,头晕了,谢谢
2017年06月20日 12点06分 3
1