TO INSERT
Dim comUserSelect As OleDbCommand
myDateTime(i) = DateTime.Parse(arr_dateTime(i))
' Console.WriteLine(r("P1"))
Dim strSELEsCTa As Integer = r("P1")
If ins < 10 Then
ins = ins + 1
Dim strSELECTa As String = "insert into tblvalues (DataTime ,P1) values ('" & DateTime.Parse(arr_dateTime(i)) & "','" & strSELEsCTa & "')"
Dim dadte_s As New OleDbDataAdapter(strSELECTa, conn)
comUserSelect = New OleDbCommand(strSELECTa, conn)
comUserSelect.ExecuteNonQuery()
End If
*要删除 *
Dim strDelete As String = "delete * from tblvalues "
现在我不知道如何检查病情
答案 0 :(得分:1)
"SELECT COUNT(*) FROM your_table_name"
如果表为空,则应返回0.
或者,您可以尝试从表格中选择一行,并根据对其的响应行为。
"SELECT * FROM your_table_name LIMIT 0, 1"