Suppose i have a table that contains 5 columns like
col1,col2...colm5.I want to import only two column through
BCP utility.How to do same through BCP in sybase.
Answer / Rajnish Kumar Shriwastawa
To import only two columns using BCP (Bulk Copy Program) in Sybase, you can use the FORMATFILE option and specify the desired columns in the format file. Here's an example format file for importing only col1 and col2:
1. col1 VARCHAR(50)
2. col2 VARCHAR(50)
3. col3 BINARY(8) NULL
4. col4 BINARY(8) NULL
5. col5 BINARY(8) NULL
After creating the format file, execute the following command to import data:
bcp mydatabase.myschema.mytable in formatfile = myformatfile -c -t"," -S servername -U username -P password
| Is This Answer Correct ? | 0 Yes | 0 No |
What is wide table?
What is join query?
What is trigger and different types of Triggers?
How do I connect to sql server database?
what protocol both networks use? : Sql server database administration
What are different types of database indexes?
How many types of the database links?
Explain what are magic tables in sql server?
Why is DML provided?
1 Answers Ernst Young, Thomson Reuters,
What is the cartesian product of the table?
What is the difference between a Application Server and a Database
what's sql server? : Sql server database administration
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)