If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Recording DateTime and showing it

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-08, 07:27
dicipulofer dicipulofer is offline
Registered User
 
Join Date: Oct 2007
Posts: 55
Recording DateTime and showing it

Hello.

I'm trying to record in one table:
create table t
(
dat_anydate date
)

insert into t (current);

So, when I use select * from t, I get:

dat_anydate
'11/10/2008'

I would like to catch '11/10/2008 12:30'

Is it possible ?

Thanks.
Fernando.
Reply With Quote
  #2 (permalink)  
Old 11-24-08, 09:10
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 64
In Informix date is just date (as you can read: date).
If you want to use more granulated time, you can use:
datetime year to minute
and then you can store "mm/dd/yyyy hh:mm"
HTH
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On