Quantcast
Channel: SCN: Message List - SAP Applications on SAP Adaptive Server Enterprise (SAP ASE)
Viewing all articles
Browse latest Browse all 3678

Re: SAP Sybase ASE - How to remove rows with spaces from a table?

$
0
0

How are you extracting the data?

 

If you are using isql, isql is padding the columns with spaces so that they line up because ISQL wants the output to be pretty.

 

But bcp doesn't care about pretty.

 

Try this:

 

CREATE VIEW myview as SELECT LTRIM(RTRIM(a)) FROM xx

 

 

Then bcp out from myview.  Do you still see the spaces?


Viewing all articles
Browse latest Browse all 3678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>