VB.Net选择数据表记录 [英] VB.Net Select Datatable Records
本文介绍了VB.Net选择数据表记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
我在该数据表中使用一个数据表,我使用And操作选择了2个值,我已附上代码
昏暗的customerRow DataRow
customerRow = TempDt.Select("QuestionOderIndex ="&" b"&"QuestionOderIndex ="&")
如果运行,则会发生代码跟随错误
运算符后缺少语法错误"
您能帮我它的紧急情况吗?
Vijay
Dear Friends,
i using one datatable in that datatable i select 2 values using And operation herewith i have attched code
Dim customerRow DataRow
customerRow = TempDt.Select("QuestionOderIndex = ''" & "b''" & "QuestionOderIndex = " & " ''")
if run the Code Following Error will occur
"syntax error missing operand after operator "
Can you Please Help me its Urgent
Vijay
推荐答案
,您需要在连接b和QuestionOrderIndex时添加空格字符.
见下文
customerRow = TempDt.Select("QuestionOderIndex =''"& "b""&" QuestionOderIndex =&"))
you need to add space charater while concatenating b and QuestionOrderIndex.
See below
customerRow = TempDt.Select("QuestionOderIndex = ''" & "b'' " & "QuestionOderIndex = " & " ''")
这篇关于VB.Net选择数据表记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文