Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

load data from CSV via command line

$
0
0
Hi, I simply need to load a CSV file into a new table I created on our Sybase database. I have tried all methods I was able to find online, and keep getting errors. Please help! :rolleyes:


1> LOAD TABLE cb_tradeTEST
2> FROM '/opt/sybase/ETMM/CB_TRADE.csv'
3> go
Msg 156, Level 15, State 2:
Server 'SybaseServer', Line 1:
Incorrect syntax near the keyword 'TABLE'.
1> LOAD TABLE 'cb_tradeTEST' FROM '/opt/sybase/ETMM/CB_TRADE.csv'
2> go
Msg 156, Level 15, State 2:
Server 'SybaseServer', Line 1:
Incorrect syntax near the keyword 'TABLE'.
1> LOAD TABLE "cb_tradeTEST" FROM '/opt/sybase/ETMM/CB_TRADE.csv'
2> go
Msg 156, Level 15, State 2:
Server 'SybaseServer', Line 1:
Incorrect syntax near the keyword 'TABLE'.
1> INPUT INTO "cb_tradeTEST" FROM '/opt/sybase/ETMM/CB_TRADE.csv'
2> go
Msg 156, Level 15, State 2:
Server 'SybaseServer', Line 1:
Incorrect syntax near the keyword 'INTO'.
1> INPUT INTO cb_tradeTEST FROM '/opt/sybase/ETMM/CB_TRADE.csv'
2> go
Msg 156, Level 15, State 2:
Server 'SybaseServer', Line 1:
Incorrect syntax near the keyword 'INTO'.
1> INPUT INTO Employees
FROM /opt/sybase/ETMM/CB_TRADE.txt
FORMAT TEXT;2> 3>
4> go
Msg 156, Level 15, State 2:
Server 'SybaseServer', Line 1:
Incorrect syntax near the keyword 'INTO'.

Viewing all articles
Browse latest Browse all 13329

Trending Articles