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 > Other > Ingres: Date formats using Copy Table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-20-06, 08:48
mark.t mark.t is offline
Registered User
 
Join Date: Mar 2006
Posts: 2
Ingres: Date formats using Copy Table

I'm unloading data from an Ingres database into text files (with '|' as the delimiter) using the 'Copy table' command e.g.

Copy table person
(
sname = char(0)'|',
fname = char(0)'|',
date = char(0)nl
)
into 'file.txt'

The date is being output in dd/mm/yy format, but I need it in dd/mm/yyyy format (or any four digit year format). Can this be done easily?

Grateful (desperate!!!) for any advice

mark.t
Reply With Quote
  #2 (permalink)  
Old 03-27-06, 06:43
dbagriff dbagriff is offline
Registered User
 
Join Date: Mar 2006
Posts: 4
Set II_DATE_FORMAT within the session to MULTINATIONAL4 before invoking the sql session eg:

setenv II_DATE_FORMAT MULTINATIONAL4

sql ...........

Last edited by dbagriff; 03-28-06 at 03:39.
Reply With Quote
  #3 (permalink)  
Old 03-30-06, 03:22
mark.t mark.t is offline
Registered User
 
Join Date: Mar 2006
Posts: 2
cheers mate!
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