Home > Back-end > Delphi access SQL query time I accurate machine, other machine have no ~?
Delphi access SQL query time I accurate machine, other machine have no ~?
Time:10-04
The following
Select sum (mint1) as aaa from message where msenttime & gt; "' 2014-04-10 00:00:00 'and msenttime & lt; 'the 2014-04-10 23:59:59 "'
I develop the use of computers can be find out the correct number, but the package sent to another client computer cannot be executed. Why is this??
Msenttime time fields. Msenttime & gt; # # 2014-04-10 00:00:00 these writing were used.
I machine lines, on the other computer is not.?
CodePudding user response:
Use string msenttime & gt; '2014-04-10 00:00:00'
CodePudding user response:
What do you use the database? The access is to use # #; MSSQL: if connected to the same server, and should not be your problem; If the client server machines do, you will need to pay attention to whether the date separator '-', the default is'/', you need to set into a '-'