[求助]请问怎么写代码能高效从后台获取是否有包含条件的数据?我0.5秒就要判断以便,需要高效不影响正常操作。
条件:接收人=登录账户 and 接收时间为空
这是我写的代码,好像有问题。需要怎么改呢?
Dim dr As DataRow
dr = DataTables("信息表").SQLFind("接收人 = '" & _name & "' and 接收时间 is null ")
第二种 'Dim dr As List(of DataRow) = DataTables("信息表").SQLSelect("接收人 = '" & _name & "' and 接收时间 is null ")
If dr IsNot Nothing Then
’执行效果
static i = 0
If i = 0 Then
nfi.Icon = new Icon(ProjectPath & "\001.ico") '图标地址
i=1
Else
nfi.Icon = new Icon(ProjectPath & "\002.ico") '图标地址
i=0
End If
End If