Sybase Question:
Download Questions PDF

How do I exclude a column in Sybase?


Open/Client 11.1.1
Create a view based on the table that you want to exclude a column from and then bcp out from the view. Open/Client Versions Older Than 11.1.1

The documentation Utility programs for Unix describes the use of format files, including the field Server Column Order. Server Column Order must equal the colid of the column, or 0 if the host file field will not be loaded into any table column.

I don't know if anyone has got this feature to work. So, here is another way of removing the column. In your example, you want to remove the last column. I am going to include another example to remove the second column and include a fourth column. Why? Because it is harder. First example will deal with removing the last column.

Download Sybase Interview Questions And Answers PDF

Previous QuestionNext Question
Would RPC or CT-Lib be better/faster?Can I use a named pipe to bcp/dump data out or in in Sybase?