Jump to content

SQLite List records


jcpetu
 Share

Recommended Posts

Hi people, I'm trying to query an SQLite Indexed DB but I don't get a way to list all records that fit a condition: For instance, I want to list the records with LastChanged date equal to some date but I get a message :

!   SQLite.au3 Error
--> Function: _SQLite_Query
--> Query:    SELECT ROWID,*  FROM Computers INDEXED BY LastChanged WHERE CLastChanged='20141020-204026'
--> Error:    no query solution

Below the code:

_SQLite_Query(-1, "SELECT ROWID,*  FROM Computers INDEXED BY LastChanged WHERE CLastChanged='" & $LastSchanged & "'", $hQuery)

While _SQLite_FetchData($hQuery, $aRow) = $SQLITE_OK ;

    ConsoleWrite($j & "-->" & $ComputerName & $aRow[1]&"-" &  "Last changed---> "&$aRow[19]&@CRLF)
    $j = $j + 1

WEnd

By the way, How can I get the first and last record of the indexed database?

I'll appreciate any help.

Thanks a lot and regards.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...