SQL + reel, white space in the columns, help.

Hi all.

I use SQL on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0

I have a massive script that I am wanting to wrap the output to a text file.

I have more than 600 columns and the script is like:

set the position
trigger the echo
Set feedback off
set verify off
Set serveroutput off
termout off Set
Set trimout on
Set trimspool on
tab set to
NewPage 0 value
set space 0
set linesize 6251
set pagesize 0
the null value 0
define array 1000
the value of colsep |
coil c:\[filename].txt
Select / * + parallel (table 4) * /.
col1,
col2,
col3,
COL4,
col5,
col6,
col7,
COL8,
col9,
col10,
Col11,
col12... etc.

My output looks like:

99990001 | + {space} + 2003 | 0 + {space} + | 0 + {space} + | + {space of} + 1 | 0 + {space} + | 0 + {space} + | 0 {space}. 0 + {space} + | 0 + {space} + | 0 + {space} + | 0 + {space} + | 0 etc

When I need to look like:

99990001 | 2003 | 0 | 0 | 1. 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0... etc.

I can't concatinate columns as this would force the SET NULL option won't do not and using NVL for each column makes the query take too much time.

a post on this thread Re: save output sql command separate values by the States that you cannot force coil of sql to remove spaces, is it true?

all threads in this research http://forums.oracle.com/forums/search.jspa?threadID= & q = colsep & objID = c84 & dateRange = last90days & userID = & numResults = 15 lead me to believe that it is also not possible.

The coil may not have gaps as it is used by some sort of contraption of system before my time to really understand and I said that it's just not having them.

Thanks in advance for any help.

G

I think that concatenating your columns with NVL(col1,0) will be your only option. In addition, it didn't really the request that much more time.

Tags: Database

Similar Questions

  • How to remove white space of table column

    Hi all

    I am trying to remove white space for column of a table and using ltrim(), rtrim(), the replace() function to.

    but it does not work and the problem remains the same me gives error invalid number as he attempted a conversion on the values of column.

    So please suggest me if he has other ways to remove white space of the column.

    Thank you!

    Perhaps his other traits. Try this

    length (regexp_replace (data_0003, "[^ [: digit :]]"))]] "))

  • delete extra spaces in the column of the table

    How can Hi I remove extra spaces in the column of the table for example if the table column is store as "ÄAAAAA" how to remove this extra space

    This is the column I have what it takes to remove extra spaces
    select SUBTYPES  from tablesubtype;
    am in
    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE Production 11.2.0.3.0
    AMT for Solaris: 11.2.0.3.0 - Production Version
    NLSRTL Version 11.2.0.3.0 - Production

    Published by: adf0994 on 03/12/2012 11:30

    Published by: adf0994 on 03/12/2012 11:42
    UPDATE tablesubtype
       SET SUBTYPES  = TRIM (SUBTYPES);
    

    RTRIM do it alone will not be enough coz it takes away only right spaces and NOT left those.
    I guess in your case do a PLATE will be more advantageous to be safe and avoid left spaces in the future.

    For the intermediate spaces... try this.

    UPDATE tablesubtype
       SET SUBTYPES  = REGEXP_REPLACE (SUBTYPES, ' ', '');
    

    Hope this helps,
    Vanessa B.

    Published by: Vanessa B December 3, 2012 14:33
    -added regexp

  • 3.1EA1 - white space in the output of the Script window

    We need a way to control white space in the output of the Script window

    SQL * Plus a trimout, trimspool and col/format... can we please get something similar?

    If these options are not on the calendar of 3.1, then even the simplest option that removes all trailing spaces would be of tremendous value to me.

    Hello

    No luck yet on trimout / support, but 3.1 trimspool EA1 includes better support for column: wrap, trunc, format, clear, and so on.

    Relevant forum to other posts on this topic:
    TRIMSPOOL on the SQL worksheet
    Re: Out of the Script and not the extra copy of the spaces

    I recorded an improvement for this request because it appears highly desirable and I don't see it in the list of the Exchange feature requests:
    Bug 13357403 - FORUM: NEED to TRIMOUT AND SUPPORT TRIMSPOOL

    Kind regards
    Gary
    SQL development team

  • Trim white spaces in the string.

    Hi all

    I want to know how to cut the white space in the whole of the line when reading the file. For that, the threshold is,

    October 7, 2010, DRI DEV, 07A0002EE, BIOS 0.75FAWARM 2.003, DRI, 215461 D, 2.0.5-O,, manson, COMPUTING equipment, 07A0002EE '
    I use the regexp_replace function. but I'm not able to use the appropriately. See the following query:

    Select trim (regexp_replace (October 7, 2010, DRI DEV, 07A0002EE, BIOS 0.75FAWARM 2.003, DRI, 215461 D, 2.0.5-O,, manson, COMPUTING equipment, 07A0002EE ',' [[: space :]]')) text]]))
    Double;

    o/p: 10/7/2010,,DRIDEV,,07A0002EE,BIOS0.75FAWARM2.003,DRI,,215461D,2.0.5-O,,,manson,GearIT,07A0002EE. Here, the space also replacement including white spaces. I don't want to replace only the remaining spaces space need as expected o/p.

    EXPECTED O/p: 07/10/2010, DRI DEV, 07A0002EE, BIOS0.75FAWARM2.003, DRI, 215461 D, 2.0.5-O,, manson, Gear IT, 07A0002EE

    Oracle version:

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    AMT for IBM/AIX RISC System/6000: release 10.2.0.4.0 - production
    NLSRTL Version 10.2.0.4.0 - Production

    Please help me.



    Thanks in advance!

    Kind regards
    Florian...
    select
    regexp_replace(
      regexp_replace('10/7/2010,,DRI DEV,,07A0002EE                           ,BIOS 0.75FAWARM 2.003     ,DRI,,215461 D ,2.0.5-O     ,,,,manson,Gear IT,07A0002EE'
      ,'^\s+|\s+$')
    ,'\s*,\s*'
    ,',')
     from dual
    

    Kind regards
    Sayan M.

  • White space on the right side of the browser (all bugs reported have not worked)

    When I look on my iphone more than 6, I get the dreaded white space on the right side of the browser. In landscape mode, it's good, but in portrait mode, this is where the problem lies. I checked to see if something is on the line in the grid view and nothing is (well, there were a lot of things like the areas of text and images, but I got that fixed but still nothing). The funny thing is, it is only on the home page. If I go to another page, then he is not there. So I checked all over the homepage to see if everything is right on the line and I can't find anything.

    The site is http://www.nathansmart.com/aa - please don't mind the crappy pictures (they are placeholders) and logo (I don't have it ). Someone could just take a peek to see if it appears on their phone? I'll check a normal iphone 6 this evening.

    Also, wouldn't she highlighted when I decrease my browser from office of this size? Why is it only appear on my iPhone and only on a single page? Obviously, there must be something wrong with this specific page, but there is nothing on the lines.

    Some of the images are hanging off the page from about 455 px and smaller. It is difficult to see because they have a transparent background, but you should be able to see in Muse if you have the contours of the block on (view-> show the contours of the block). Drag the clip of breakpoint in the Muse until approximately 415 px and you should see some of the images are off the page to this width (the van of image in particular).

    Hope that helps!

    Anna

  • White space at the bottom of the container

    I've tried everything. I turned off sticky footer and removed the padding down but I can't figure out how to remove white space at the bottom of the container.image.jpegimage.jpeg

    I wasn't expecting the rounded corners to cause problems.

    But positioning not connected and disconnected from the separate elements in a Web page is always something to be careful with. Smart Guides can pop up very reassuring, but Muse simply cannot change the principles of HTML. The length of a text and the depth of a just framework is not easy to predict and anticipate, so a bad alignment can occur. Grouping could help. Try to find a different design that is less sensitive to these effects.

  • There is white space to the right of my design seen in the portrait on a tablet or a phone

    Hello

    I hope someone can help me with this problem, it happens on many of my sites. When my site is viewed on a tablet in portrait orientation or on a phone, there is a uniform amount of white space on the right side of the screen, even if all the elements are set to 100% width.

    You can see on these sites: www.pfcwine.com or www.tracilane.com

    Note: when I bought form templates some resources out there does not happen, clearly that they have found the solution?

    Any help would be GREATLY appreciated!

    In this case, I would look very closely on 3rd party widgets. Delete one by one and in the air, what is happening.

  • White space above the footer...?

    Hi guys,.

    I have problems with my footer and the height of the page to get rid of the unwanted white space above the footer setting.

    I was reading this topic and trying to solve the problem with the steps suggested with nothing will do.

    Help, please

    Thank you

    Deb

    Deborah Hey, it was an easy fix...

    Remember that the Mobile Application layer you created to put stuff and then he switched to the invisible ? I think it's more than enough for a clue...

    TADAA!

  • White space to the right of the browser

    The site can be seen at: mina.liangbros.com.

    I read through many sons and they said I have objects outside the frame or box of muse but I double and triple checked and there is no external object. I have not added the no style scrolling as suggested some people but that is not 'really' problem.  When you click on one of the tabs, you can see the white space (in my case its gray space), or you can highlight text and drag it to the right to see the white space.  Can someone help me with this? His summer gives me a headache! Thank you guys a lot!

    Hello cullanl48700389,

    I think that you are able to see the white space in the case of telephones. As you tried to create a full Web page width then it can happen to the phone if you have not created a separate telephone provision. Please check following and let me know if it helps.

    1. Make sure it is only placed anything outside the page, including the master page.
    2. Make sure that everything that is not a width of 100% items must be placed in the grid overlay
    3. To activate the grid overlay click on view > Show Grid overlay
    4. Enabled grid overlay will show pink shade on the page. Make sure that none of the elements other than the full width are outside this area
    5. If the problem persists, then please share with me .muse file and I would like to take a peek.

    Kind regards

    Vivek

  • White space on the right side of two pages (phone version)

    Hello

    I'm having a problem with white space unwanted on the right side of only two of my pages (phone version only). The first page has a wider gap:

    www.nycrom.com/Phone/testimonials.html

    On the second page, the gap is not as wide:

    www.nycrom.com/Phone/index.html

    I tried just about everything I could think of. I checked for everything outside the margin, but there is not. Any ideas/suggestions? Your help is appreciated.

    Thank you.

    I found the solution for me: a few items on the page are automatically extended to any width that causes white space on the sides.

  • How to remove the white space of the oam file?

    I did the MCO in Adobe Edge animate when I insert in Adobe Dreamweaver.

    She turn into this:

    123.JPG

    There is a white space below the oam file.

    How to get rid of?

    I am a student in design without as much knowledge of coding > < please help me.

    When you insert the file oam, I guess it gets inserted as a tag .

    style = "display: block" ... >

    Add the "BOLD" text to the tag object as shown above.

    HTH,

    Vivekuma

  • Issues of white space between the content and footer.

    I have the problem of length of the areas whites/page between the end of my content and footer.

    I have read the forums and tried to change the height of minium length of page in 800 and then I

    disabled the foot sticking in the properties of the page on the master page and content page itself.

    Here is a link to one of my pages.  http://www.ueonline.com/RoHS-info.html

    This page has very little content, and you can see the white space.

    Any help is appreciated.

    Hello

    Check empty rectangles/related texts executives on the page. Check the screenshot below.

    See you soon,.

    Vikas

  • adjust the white space at the end of field

    Have a field called title. One program allows the user to update the title and left undetermined amount of space at the end of the string.

    example of title

    ↑ refers to white space

    "FF 12 a ^'."
    ' FF 13 a '. '
    "FF 15 has a ^ ^'.


    Question 1.


    Y at - it a select statement or how I can list the number of records have white space at the end of the string?



    Question 2.

    Can I update the table and use the TRIM function to truncate the white spacess on the end only?

    using something like this:


    FOR TABLE_REC IN TABLE_cur
    LOOP

    UPDATE TABLE
    SET TABLE.title = TRIM (TABLE_REC.title)
    WHERE THE TABLE. ACCOUNT_NBR = TABLE_REC. ACCOUNT_NBR;
    END LOOP;

    QUESTION 3.

    Is there a table alter congratulate that may prevent or use the TRIM function to prevent trialing whitespace to be updated or inserted.

    Thank you very much!!!

    (1) select count (*) in the table where the field is not null and the field! = rtrim (field)

    (2) RTRIM, TRIM no

    (3) add a check on the "field = rtrim (field)" column constraint enforcement

  • White space between the Div tags

    I use DW CS4.  I need to help, reducing the white space between the DIV tags  I have the white space between smaller gray line and my nav bar.  I see all the places where there are margins or padding.  Can anyone help?  Here's the code.  Thank you.

    < body bgcolor = "#CCCCCC" onload = "MM_preloadImages('..)." /_img/HOMEover.jpg ',' /_img/COMPANYover.jpg ','... / _img/PROJECTOR TSover.jpg ', '... CASE STUDIESover.jpg/_img / ','... / CONTACTUSover.jpg/_img ') ">"

    < div id = "container" >

    < div align = "left" >

    "" < p > < img src = "... / _img/Nute_Logo_tag_060612.gif" alt = "logo" name = "logo" width = "113" height = "74" hspace = "5" align = "absbottom" id = "logo" / > < / p >

    < / div >

    < div id = "header" > < / div >

    < div id = "content" > < / p >

    < table border = "0" cellpadding = "0" cellspacing = "0" >

    < b >

    "" "" < td > < a href = "" javascript:; "target ="_top"onclick =" MM_nbGroup ('down', "group1', 'bluebar',", 1) ' onmouseover = "MM_nbGroup ('over', 'bluebar',","1)" onmouseout = "MM_nbGroup ('out')" > < img src = "... / _img/bluebarup.jpg" alt = "" name = "bluebar" width = "118" height = "15" border = "0" id = "bluebar" onload = "" / > < /a > < table >

    "" < td > < a href = "" javascript:; "target ="_top"onclick =" MM_nbGroup ('down', "group1', 'Home',", 1) ' onmouseover = "MM_nbGroup ('more', 'Home','... / _img/HOMEover.jpg ',", 1) "onmouseout ="MM_nbGroup ('out')"" > < img src = ""... / _img/HOMEup.jpg ' alt = "Click HOME to go to the home page" name = "home" width = "115" height = "15" border = "0" id = "home" onload = "" / > < /a > < table >

    "< td > < a href =" "javascript:;" target = "_top" onclick = "MM_nbGroup ("down"," group1', 'society', ", 1) ' onmouseover =" MM_nbGroup ('more', 'society', "..") " "(/ _img/COMPANYover.jpg', '', 1)' onmouseout ="MM_nbGroup ('out')"> < img src ="... / _img/COMPANYup.jpg "alt ="Click to go to our services COMPANY"name ="company"width ="122"height ="15"border ="0"id ="company"onload =" "/ > < /a > < table >"

    "< td > < a href =" "javascript:;" target = "_top" onclick = "MM_nbGroup ("down","Group 1","projects",", 1) ' onmouseover = "MM_nbGroup ('more', 'projects',..." "(/ _img/PROJECTSover.jpg', '', 1)' onmouseout ="MM_nbGroup ('out')"> < img src ="... / _img/PROJECTSup.jpg ' alt = 'PROJECTS click to see our projects' name = 'projects' width = "122" height = "15" border = "0" id = "projects" onload = "" / > < /a > < table > "

    "" "" < td > < a href = "" javascript:; "target ="_top"onclick =" MM_nbGroup ('down', "group1', 'studies',", 1) ' onmouseover = "MM_nbGroup ('more', 'studies,'... / _img/CASE STUDIESover.jpg',", 1) "onmouseout ="MM_nbGroup ('out')"> < img src ="... / _img/CASE STUDIESup.jpg "alt ="click on the CASE STUDIES to see examples of projects' name = "added" width = "150" height = "15" border = "0" id = "added" onload ="" / > < /a > < table >

    "" "" < td > < a href = "" javascript:; "target ="_top"onclick =" MM_nbGroup ("bottom", "group1', 'contactus',", 1) "onmouseover =" MM_nbGroup ('more', 'contactus','... / _img/CONTACTUSover.jpg ', ", 1)" onmouseout = "MM_nbGroup ('out')" > < img name = "contactus" src = "... / _img/CONTACTUSup.jpg" border = '0' alt = "" onload = "" / > < /a > < table >

    < /tr >

    "< / table > < img src =" "alt =" "name ="mainphoto1"width ="780"height ="264"id ="mainphoto1"/ >

    Thank you for all your help.  I solved it by adding a padding to my header (grey line).

Maybe you are looking for

  • Help requested by Experts of HP only please.

    I would like some advice on a lemon I've been stuck with. 17 SEP 2013, I bought a new dv7-7233nr desire. Right out of the box, I noticed a slight problem with the display. A task about 5 mm in diameter in the upper left quadrant was discolored or fad

  • Issue of Mic EarPods

    Hi guys, this is my first post to any community. Come directly to the question; I just bought all new iPhone 6 64 GB now, during the call when you use EarPods, call receiving party hears all the volume of my voice, the sound transmitted by my microph

  • MOVIES with the HELP of hp DVD CANNOT BURN a DH16AAL SCSI CdRom Device

    I can burn music and play music CDs, but can play any dvd any help please it tells me to insert the disc

  • Need help to view the slide show

    Original title: XP microsoft S/W Microsoft XP S/W doesn't have a "slide show" on the My photo toolbar. What is avialable to add this feature, do not to make slide shows-to show them. TNX al

  • English drivers for canon mp 287 printer?

    Original title: canon mp 287 printerI recently bought a canon mp 287 printer in chiang mai, Thailand. I used the download provided by canon disk to install the drivers, unfortunately it's in the thai language, which I can't read. I uninstalled the pr