SQLite timestamp problem
Posted: 11.06.2013, 22:03
Hello,
I am a little bit new at SQLite.
I have created a SQLite table as follows:
I have inserted a record with the values 1,'',1,1,10 respectively.
I have filled up the SQL property of a TZReadOnlyQuery with the text below:
I could not find any way of passing the DTHR parameter to get the record I have created.
I have tried to pass it as DateTime and also as a String but both options did not retrieve the record.
What am I doing wrong ?
Thank you very much.
I am a little bit new at SQLite.
I have created a SQLite table as follows:
Code: Select all
Create table IF NOT EXISTS EVENTO (
EVENTO INTEGER NOT NULL PRIMARY KEY ,
DATAHORA Timestamp(3,3) NOT NULL ,
MODULO INTEGER,
UNIDADE INTEGER NOT NULL,
TIPO_EVENTO INTEGER NOT NULL,
) ;
I have filled up the SQL property of a TZReadOnlyQuery with the text below:
Code: Select all
SELECT evt.EVENTO
FROM EVENTO evt
WHERE evt.DATAHORA = :dthr
AND evt.UNIDADE = :unid
and evt.TIPO_EVENTO = :tpevt
I have tried to pass it as DateTime and also as a String but both options did not retrieve the record.
What am I doing wrong ?
Thank you very much.