Java createsqlquery (). List () returns the resolution of a date format without a time and seconds

Source: Internet
Author: User
Tags time and seconds
Method One will oracel the "field of receipt Time" receive_sheet_time in the database corresponding table, changed from the original date type to timestamp then, in the Java program, by (Java.util.timestamp) obj[5] This returns the value, which shows "month and minute". As of 2010-03-01 14:39:17 method two oracleoracel the "field of receipt Time" receive_sheet_time in the database corresponding table, the field continues to hold the date type in the SQL statement above, returning the "field of the receipt date" Receive_sheet_time, changed to To_char (Loading.receive_sheet_time, ' Yyyy-mm-dd hh24:mi:ss ') as Receive_sheet_time returns a value as a string type , and then, in a Java program, the return value by (String) obj[5] is displayed with "month-months-minute seconds." As 2010-03-01 14:39:17

Java createsqlquery (). List () returns the resolution of a date format without a time and seconds

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.