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