Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

anyone know how to upload csv file to temp table of sybase DB from java?

549379Apr 10 2008 — edited Apr 11 2008
Dear All,

I blindly need your help in achieving the following:

I have the csv file which contains OrdId and BillId values. I just wanted to read these two values one by one from excel and loaded them into one temp table of Sybase SQL Anywhere.
here is the sample query for your reference:
begin tran

create table tempdb..ordBill (ord_id int identity,bill_id int
)
go
load table tempdb..ordBill from 'c:\\test\\test.csv'
Error:
Incorrect syntax near the keyword 'table'.

I am having only one tool Microsoft ISQL/W from which i connect to remote sybase DB and run some queries like sp_help , create etc.. from there.
It would be great,if somebody knows the way of doing the above thru some java program. Otherwise, is there any tool like BCP required to do the above?


Awaiting for your valuable reply
thanks
pannar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2008
Added on Apr 10 2008
8 comments
1,160 views