Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Help : Converting Dates to Chars

Help : Converting Dates to Chars

From: <rezaferry_at_my-deja.com>
Date: Mon, 18 Sep 2000 10:12:25 GMT
Message-ID: <8q4ppv$v4v$1@nnrp1.deja.com>

I have an SQL statement which goes
  select * from <table>
I use this same statement to get the data from each table. The problem is when I encounter a Date field I only get the date and not the time, while I need both the date and the time data.

Eg : If I have a data 9-01-2000, 12:50 it only shows 9-01-2000. How do I change the settings so that oracle automatically shows 9-01-2000. 12:50.

And since I use it on different tables, I have no efficient way of knowing the name and the types of each field before hand. Thus I cannot just use to_char (D_SOMETHING, 'DD-MM.......').

Thanks ....

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Mon Sep 18 2000 - 05:12:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US