如何判断数据库中的值?
我的程序如下:
Dim a As New OleDb.OleDbCommand
a.Connection = Me.OleDbConnection1
Me.OleDbConnection1.Open()
a.CommandText = "select 姓名 from table where num>5"
If (IsDBNull(a.ExecuteScalar.GetType().ToString())) Then
MessageBox.Show("good")
End If
Me.OleDbConnection1.Close()
请各位指点一下.最主要的判断是否为<null>?