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 > Copy table in Ingres

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-04, 23:14
osdcsp13 osdcsp13 is offline
Registered User
 
Join Date: Apr 2004
Location: HN
Posts: 3
Copy table in Ingres

Hi,
i am new to Ingres and OpenROAD, and now i am trying to use "Copy table" utility of Ingres, can anyone help me to solve this:

I have a text file comma separated: test.txt with content:

10,'12-mar-2004',2000,60,30
11,'12-mar-2004',2000,60,10

and a table named balance
In a openROAD script , i use:

copy balance(
balance_id= integer,
balance_date= d1,
balance_value= integer,
tenancy_id= integer,
account_number= integer,
nl=d1)
from 'C:/test.txt';


and it's raising error:

E_CO0024 COPY: Unexpected END OF FILE while processing row 4.


Many thanks
Reply With Quote
  #2 (permalink)  
Old 04-02-04, 09:16
dbabren dbabren is offline
Registered User
 
Join Date: Jul 2003
Location: England
Posts: 152
I will assume that you have already created the table balance (?!)

Try

copy balance(
balance_id= c0comma,
balance_date= c0comma,
balance_value= c0comma,
tenancy_id= c0comma,
account_number= c0,
nl=d1)
from 'C:/test.txt';

you might need to remove the quoted from around your dates - athough that depends on your setup.

Hope this helps
__________________
Regards
Dbabren
Reply With Quote
  #3 (permalink)  
Old 04-05-04, 00:59
osdcsp13 osdcsp13 is offline
Registered User
 
Join Date: Apr 2004
Location: HN
Posts: 3
Talking

Thanks dbabren

Actually i tried copydb utilitty and then i just get the code from *.in file
and it works
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