Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT ACCESS
Problems with Comparation of dates.
Toni Almagro
2007-01-29 04:56:50
Hi,
I am an employee of Concatel that recently adquired HXTT Acces v3.1.
I have problems when I try to comparate two dates.

Please can you send me, some examples of comparate dates and parsing dates in
java code please.

Thanks


Toni Almagro
jantonio.almagro@concatel.com

Concatel Vanture Team
Av. Ports d'Europa,100 - 08040 Barcelona (Spain)
tel. +34.93.567.97.10
fax +34.93.567.97.11
Re:Problems with Comparation of dates.
HXTT Support
2007-01-29 05:26:47
For instance,
where date1>{d '2006-01-30'}

where date1
...

What's your wrong sample?
Re:Re:Problems with Comparation of dates.
Toni Almagro
2007-01-29 06:28:10

Hi,
This is my code. I am trying to select the max(valor1) with the
clausule table.variable >= {ts 'date'}. The format of data is
yyyy-mm-dd hh:mm:ss.

SELECT MAX(valor1) FROM ["+archive+"].DataCertificacio
WHERE (DCE_VPL_ID = 1 AND DCE_SIS_ID =5
AND DataCertificacio.DCE_Data >= {ts '"+valor+"'} )";
Re:Re:Re:Problems with Comparation of dates.
HXTT Support
2007-01-29 07:31:49
Your sql seem to be correct.
You should use System.out.println("SELECT MAX(valor1) FROM ["+archive+"].DataCertificacio
WHERE (DCE_VPL_ID = 1 AND DCE_SIS_ID =5
AND DataCertificacio.DCE_Data >= {ts '"+valor+"'} )");

to see what's valor. It need to be a string with "yyyy-mm-dd hh:mm:ss" format.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap