Question : Oracle date output

When I use PL/SQL at a widnows workstation I get the date and hour when I query
EX: select  STARTTIME from database; outputs formats like... 3/17/2007 8:31:10 PM
but when I'm doing the same query from a UNIX sqlplus prompt I don't get the time displayed.
EX: SQL>select  STARTTIME from database; outputs formats like... 17-MAR-07 ..

I need the time displayed via the UNIX sqlplus. Any ideas?


Answer : Oracle date output

Try:

select to_char(STARTTIME, 'MM/DD/YYYY HH:MI:SS AM') from database
Random Solutions  
 
programming4us programming4us