$path = "数据库路径"
$a = "tLogs"
$b = "510107198508214218"
_SQLite_Open($path)
_SQLite_Query(-1, "SELECT * FROM " & $a & " where sCardID ='" & $b & "';", $hQuery)
While _SQLite_FetchData($hQuery, $aRow) = $SQLITE_OK
_GUICtrlListView_AddItem($ListView2, $aRow[0])
_GUICtrlListView_AddSubItem($ListView2, _GUICtrlListView_FindInText($ListView2, $aRow[0]), $aRow[1], 1)
_GUICtrlListView_AddSubItem($ListView2, _GUICtrlListView_FindInText($ListView2, $aRow[0]), $aRow[2], 2)
_GUICtrlListView_AddSubItem($ListView2, _GUICtrlListView_FindInText($ListView2, $aRow[0]), $aRow[3], 3)
_GUICtrlListView_AddSubItem($ListView2, _GUICtrlListView_FindInText($ListView2, $aRow[0]), $aRow[4], 4)
_GUICtrlListView_AddSubItem($ListView2, _GUICtrlListView_FindInText($ListView2, $aRow[0]), $aRow[5], 5)
_GUICtrlListView_AddSubItem($ListView2, _GUICtrlListView_FindInText($ListView2, $aRow[0]), $aRow[6], 6)
WEnd
_SQLite_Close();读取并显示在控件$ListView2上
|