Quantcast
Channel: DA-SOFT Technologies - Forum
Viewing all articles
Browse latest Browse all 1040

Subject: Milliseconds in DateTime - by: iwagner

$
0
0
Evening guys, In Firebird: I have some tables that use a TimeStamp field as PrimaryKey. In BDE everything worked properly however when using AnyDAC the following happens: I create a new record; I set the TimeStamp Field as Delphi's variable "Now"; I save the record; Assuming that "Now" was '01/01/2013 08:33:21' when I setted the field value if when I try to select the record I do something like [code]SELECT * FROM TABLE_1 WHERE TIMESTAMP_FIELD = '01/01/2013 08:33:21';[/code] it finds nothing, however if I do: [code]SELECT * FROM TABLE_1 WHERE TIMESTAMP_FIELD >= '01/01/2013 08:33:21' AND TIMESTAMP_FIELD

Viewing all articles
Browse latest Browse all 1040

Trending Articles