Re: [ADSM-L] Trailing .000000
2015-07-01 09:59:42
Hi Eric,
It's always fun to play and calculate with timestamps in db2, here is one of
the solutions to get the desired format:
tsm: TSMLABO3>select date_time from actlog fetch first 2 rows only
DATE_TIME
---------------------------
2015-03-27 07:06:10.000000
2015-03-27 07:06:10.000000
tsm: TSMLABO3>select varchar_format (date_time, 'YYYY-MM-DD HH24:MI:SS') as
date_time from actlog fetch first 2 rows only
DATE_TIME: 2015-03-27 07:06:10
DATE_TIME: 2015-03-27 07:06:10
Regards,
Kurt
-----Oorspronkelijk bericht-----
Van: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] Namens Loon,
EJ van (ITOPT3) - KLM
Verzonden: woensdag 1 juli 2015 15:17
Aan: ADSM-L AT VM.MARIST DOT EDU
Onderwerp: [ADSM-L] Trailing .000000
Hi guys!
Now that I have my SQL statement working I noticed that a select date_time from
actlog returns the following format:
2015-06-29 23:27:04.000000
What is the proper way to remove the trailing .000000?
Again, thanks for your help!!!
Kind regards,
Eric van Loon
AF/KLM Storage Engineering
********************************************************
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain confidential and
privileged material intended for the addressee only. If you are not the
addressee, you are notified that no part of the e-mail or any attachment may be
disclosed, copied or distributed, and that any other action related to this
e-mail or attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately by return
e-mail, and delete this message.
Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its
employees shall not be liable for the incorrect or incomplete transmission of
this e-mail or any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch
Airlines) is registered in Amstelveen, The Netherlands, with registered number
33014286
********************************************************
*** Disclaimer ***
Vlaamse Radio- en Televisieomroeporganisatie
Auguste Reyerslaan 52
1043 Brussel
nv van publiek recht
BTW BE 0244.142.664
RPR Brussel
VRT Gebruikersvoorwaarden <http://www.vrt.be/gebruiksvoorwaarden>
|
|
|