Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

import text file into sybase table

Status
Not open for further replies.

mark1110

Programmer
Apr 20, 2005
85
0
0
US
Hi,

I need to import a text file on a unix server to a sybase table. The text file (mailing.txt) is comma delimited:

name, address, city, state, zip, county

The sybase file (maillist) I want to import the text file into is:

name char(35)
address char(50)
city char(35)
state char(2)
zip char(5)
county char(20)

I was looking at the bcp command but I am not sure how to use it. Can anyone help me?

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top