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 > Datetime variable

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-03, 06:29
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Datetime variable

Hi all,

I got a column datetime year to fraction(5) in my table. If i want to insert a record thru dbaccess i have to specify all the parameters, for eg.
"2003-09-09 09:09:09.12345", i have to enter year-mm-dd hh:mm:ss fraction. Is there a way where i can only enter date & it will automatically insert the time & fraction. Also how can i insert the same thru front-end utilities. The env vaiable today does it, but we won't be using it. Appreciate your reply.

Regards,

lloyd
Reply With Quote
  #2 (permalink)  
Old 08-26-03, 16:46
ghed ghed is offline
Registered User
 
Join Date: Nov 2002
Posts: 11
here are some options

EXECUTE PROCEDURE myProc(TODAY, param2, param3...)

or

EXECUTE PROCEDURE myProc(CURRENT YEAR TO FRACTION(5), param2, param3...)

or

EXECUTE PROCEDURE myProc(DATE("1/2/2003"), param2, param3...)

rgds,
ghed
Reply With Quote
  #3 (permalink)  
Old 08-26-03, 23:22
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Quote:
Originally posted by ghed
here are some options

EXECUTE PROCEDURE myProc(TODAY, param2, param3...)

or

EXECUTE PROCEDURE myProc(CURRENT YEAR TO FRACTION(5), param2, param3...)

or

EXECUTE PROCEDURE myProc(DATE("1/2/2003"), param2, param3...)

rgds,
ghed

Hi Ghed,

Thanks a lot for your feeback.

Regards,

lloyd
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