How to truncate the output of the field in the column "LONG".

Hi all

I have been asked to retrieve all records from a table with a column that has been initially formatted with the format "LONG".

How can I truncate the output of this area without having to show the Junk characters?

Very appreciated

JR

Wrong forum!

This forum is ONLY for questions/problems on Sql Developer and your question has NOTHING to do with this product.

Please mark the thread ANSWERED and repost it in the SQL/PL/SQL forum.

SQL and PL/SQL

When you repost you must SHOW an example of what you are wanting to do. You should also explain what you mean by 'LONG Format' - I have never heard such a thing.

Tags: Database

Similar Questions

  • How to list the columns for a view

    Dear experts

    I know how to list the columns in a table. This easy by querying the data USER_TAB_COLUMNS dictionary.

    But my problem is how to issue a query that returns the columns for a view?

    Thanks in advance

    USER_TAB_COLUMNS stores the metadata for both views.

    Select * from user_tab_columns where table_name = 'YOUR_VIEW_NAME"of order of column_id.    -Replace with your view_name (mandatory course)

    See you soon,.

    Manik.

  • How to check the column updated whereby the package or procedure?

    Hi all

    Can someone help me how to check the column updated by which the package or procedure

    A.Mahesh

    Hello.

    You can check what object is a reference to the table of the column:

    Select *.

    of all_dependencies d

    where d.REFERENCED_NAME = '. '

    And you can find all the links to the object source data column:

    Select *.

    of s all_source

    where s.name = "."

    and s.OWNER = '. '

    and s.TYPE = "."

    and as s.TEXT '%%'

  • How to add the column to Adobe flex mxml or actionsctpt mx:DataGrid?

    I have the simple mxml code

    <mx:DataGrid id="DGG"
                
    editable="true">
       
    <mx:dataProvider>
           
    <mx:Object scheduledDate="4/1/2006"/>
       
    </mx:dataProvider>
    </mx:DataGrid>
    <mx:Button id="SetBut"
              
    label="Set Array as Data Provider"
              
    click="SetDP(); AddBut.visible = true;"
              
    x="100.5"
              
    y="164"
              
    width="211"/>
    <mx:Button id="AddBut"
              
    label="Add a column!"
              
    click="AddCol();"
              
    x="100.5"
              
    y="194"
              
    width="211"
              
    visible="false"/>
    <mx:Script>
        <![CDATA[
            import mx.controls.dataGridClasses.DataGridColumn;
            import mx.collections.ArrayCollection;

            [Bindable]
            public var MyAC:ArrayCollection=new ArrayCollection([{scheduledDate: "4/1/2006", homeTeam: "Chester Bucks"}]);

            public function SetDP():void
            {
                DGG.dataProvider=MyAC
            }

            public function AddCol():void
            {
                MyAC.addItem({scheduledDate: "4/5/2007", homeTeam: "Long Valley Hitters", Umpire: "Amanda Hugenkis"});
                DGG.columns.push(new DataGridColumn("Umpire"));
            }
        ]]>
    </mx:Script>

    I want to add lines to my datagrid table how do such thing?

    How to add the column to Adobe flex mxml or actionsctpt mx:DataGrid?

    (You can place this code in a Flash or AIR application - it compiles without error, but will not add any columns =)

    Change this:

    public void SetDP (): void
    {
    DGG.dataProvider = MyAC
    MyAC.addItem ({scheduledDate: "05/04/2007", homeTeam: "long hitters Valley", umpire: "Amanda Hugenkis"});
    }
               
    public void AddCol (): void
    {
    var dgc:DataGridColumn = new DataGridColumn ("Umpire");
    var ca:Array = DGG.columns;
    CA.push (DGC);
    DGG.columns = ca;
    }

    Dany

  • How to change the column ordering the interactive report?

    How to change the column ordering the interactive report?

    Hello

    Run the report as a developer, click on the "wonder wheel", click "Select columns" and reorder your columns in the box 'report '.
    Then click again on the "wonder wheel", click on save report and save the default state.

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • How to truncate the query

    Hello

    with this sql:

    SELECT c.country_name, l.city
    FROM countries c, locations l
    

    I have 575 lines,

    How can I truncate the output to 100 lines?

    Add this predicate:

    WHERE ROWNUM<=>

  • How to truncate the number

    Hi all,
    I hope if anyone knows a function to truncate the '+ 1' phone number. We have created a new custom field to the value in the phone field. The question we face is the new value, it will contain three new values (Plus 1 and a space) "+ 1".

    Can update us the default value expression while it:
    a. truncate "+ 1".
    b. remove all spaces in the phone number

    Thank you

    PS: I tried TRIM (CONNECTING '+ 1' < phPhone >). But I get an error!

    I would use a workflow (maybe two, depending on whether you need it to operate on events 'new' and 'Edit'). You can use a combination of the IIR, left, and Len to get what you need. For example:

    IIf (left (, 3) = "+ 1", on the right (, Len ()-3),)

    Chris

  • [ADF, JDev12.1.3] How to get the column headers, request of VO and VO bind vars used by an af:table?

    Hallo,

    I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:

    • the column headings of the af: table
    • Visible property (true/false) of the columns af:table
    • the actual query of the VO instance used to create the af: table
    • the values of real bind variables passed to the query of the instance of VO

    I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.

    I'm a little confused on who use the code to achieve this... you kindly help me?

    I did a similar qustion here Re: [ADF, JDev12.1.3] how to export an af:table to Excel in an ADF Essentials application? but then I guessed that it was preferable to create a new thread.

    Thank you

    Federico

    For this, you can use this type of code

    Context LocaleContext = _adfTableBinding.getLocaleContext ();

    for (attr AttributeDef: attributeDef) {}

    Label As String = attr.getUIHelper () .getLabel (context);

    _logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)

    "Name:"+ label);

    }

    which produces this output

    Timo

  • How to cut the column data

    Gurus in the morning

    I have two tables with the data in the corresponding column, BUT I need to cut the columns in a table
    the data is displayed as follows in table xpq_log
    LOG_DATE                     LOG_PTR     LOG_HDR
    01/06/2011 00:00:00     0609pro     0609IN002C_06
    04/06/2011 00:00:00     0609pro     0609IN002C_06
    05/06/2011 00:00:00     0609pro     0609IN002C_06
    06/06/2011 00:00:00     0609pro     0609IN002C_06
    07/06/2011 00:00:00     0609pro     0609IN002C_06
    09/06/2011 00:00:00     0609pro     0609IN002C_06
    10/06/2011 00:00:00     0609pro     0609IN002C_06
    12/06/2011 00:00:00     0609pro     0609IN002C_06
    01/06/2012 00:00:00     0609pro     0609IN002C_06
    02/06/2012 00:00:00     0609pro     0609IN002C_06
    03/06/2012 00:00:00     0609pro     0609IN002C_06
    06/06/2012 00:00:00     0609pro     0609IN002C_06
    07/06/2012 00:00:00     0609pro     0609IN002C_06
    08/06/2012 00:00:00     0609pro     0609IN002C_06
    09/06/2012 00:00:00     0609pro     0609IN002C_06
    In the table of printpdf as follows
    PDF_REPORT     PDF_DESCRIPTION
    IN002C                     STOCK FILE PURGE - PRINT WH CONTROL
    How can I cut the column data (log_hdr) to match column (pdf_report)?

    Any help will be much appreciated

    user11978142 wrote:
    Yes the code always starts with an alphabetic character and always ends before the underscore character and the prefix is always digital.

    And Yes to the second comment WRT 1 to many relationship.

    WRT the duplicates I want the info displayed even if there is no matching printpdf

    You talk a LEFT OUTER JOIN, then:

    See the example below (the statement are just to reproduce the paintings, just use the last query):

    WITH xpq_log AS
    (
       SELECT '0499SYS003A_06' log_hdr FROM DUAL UNION ALL
       SELECT '0612PV410W1_06' log_hdr FROM DUAL UNION ALL
       SELECT '0609IN002C_06' log_hdr FROM DUAL UNION ALL
       SELECT '2201PA100D1_30' log_hdr FROM DUAL
    )
    , printpdf AS
    (
       SELECT 'SYS003A' pdf_report, 'STOCK FILE PURGE - PRINT WH CONTROL' description FROM DUAL UNION ALL
       SELECT 'PV410W1' pdf_report, 'Description 2' description FROM DUAL
    )
    SELECT a.log_hdr, REGEXP_SUBSTR (a.log_hdr, '[[:alpha:]][^_]*') AS pdf_report
         , b.description
      FROM xpq_log a LEFT OUTER JOIN printpdf b
           ON pdf_report = REGEXP_SUBSTR (a.log_hdr, '[[:alpha:]][^_]*');
    
    Output:
    LOG_HDR        PDF_REPORT     DESCRIPTION
    -------------- -------------- -----------------------------------
    0499SYS003A_06 SYS003A        STOCK FILE PURGE - PRINT WH CONTROL
    0612PV410W1_06 PV410W1        Description 2
    2201PA100D1_30 PA100D1
    0609IN002C_06  IN002C                                           
    

    Kind regards.
    Al

  • How to sort the column total in pivot view

    Hello guys

    I have a report in pivot mode, where I put the call on the section of the column type. So the report looks to below with the AMOUNT applied to the section of the column:
                                       Call Type1         Call Type2       Call Type3               TOTAL
    ID                                        SALES TOTAL
    
    A                                  100                  200                300                       500
    B                                  200                  200                400                       800
    C
    D
    E
    My question, how can I sort the data in the field "TOTAL"? The challenge, seems, is that, since 'TOTAL' is not a column of the table, but just a screen of pivot Sum, it cannot be sorted H - L or L.-H...

    But I would like to get some advice from you guys before you do my conclusion

    Thank you

    Published by: user7276913 on January 11, 2010 10:05

    You can't have sorting on the PivotTable total.

    On a workaround solution.
    You can create a column in the criteria that calculate the sum

    SUM (sales_total by ID)

    Assign the sorting on this column order
    You can exclude this column in the PivotTable

    Kind regards
    Rambeau

  • Does anyone know how to freeze the column headings?

    I have been instructed to freeze the column of a report header, so of as you can freeze cells in Excel.

    End users want to scroll through the data in the report and again, see.

    They would also like to see the identifier field of line, in my case the name of the employee, when they scroll to the right.

    Someone knows how to do this? If so, I'd like a few examples.

    Hello

    Here are the settings that I have for my report model on my example page:

    Before the lines:

    <table cellpadding="0" border="0" cellspacing="0" summary=""  class="t18Standard">
    <tr><td>
    <div style="border:1px solid silver; padding:0px; margin:0px; background-color:#EFEFEF;">
    <table id="reportheadings" class="t18Standard">
    

    Before the column headers:

    (this is blank)
    

    Model column title:

    <th class="t18ReportHeader" #ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>
    

    After the column header:

    </tr></table></div>
    <div id="reportdiv" style="overflow-y:scroll; border:1px solid silver; padding:0px; margin:0px;">
    <table id="reportbody" class="t18Standard">
    

    Before every line:

    <tr #HIGHLIGHT_ROW#>
    

    Column model 1:

    <td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data">#COLUMN_VALUE#</td>
    

    (None of the conditions not set for this model because it is used by all lines)

    After each line:

    </tr>
    

    After the lines:

    </table>
    </div>
    <div class="t18CVS">#EXTERNAL_LINK##CSV_LINK#</div><script type="text/javascript">
    function setwidths(w)
    {
     var t1 = document.getElementById("reportheadings");
     var t2 = document.getElementById("reportbody");
     var t1rows = t1.rows;
     var t2rows = t2.rows;
     var t1cells;
     var t2cells;
     var k;
     var r;
     for (r = 0; r < t1rows.length; r++)
     {
      t1cells = t1rows[r].cells;
      for (k = 0; k < t1cells.length; k++)
      {
       if (w[k] == 0)
       {
        t1cells[k].style.display = 'none';
       }
       else
       {
        t1cells[k].style.width = w[k];
       }
      }
     }
     for (r = 0; r < t2rows.length; r++)
     {
      t2cells = t2rows[r].cells;
      for (k = 0; k < t2cells.length; k++)
      {
       if (w[k] == 0)
       {
        t2cells[k].style.display = 'none';
       }
       else
       {
        t2cells[k].style.width = w[k];
       }
      }
     }
    }
    function setdivheight(h)
    {
     var d = document.getElementById("reportdiv");
     d.style.height = h;
    }
    </script>
    </td></tr><tr><td>#PAGINATION#</td></tr></table>
    

    On the area of my page, in the footer of the region:

    <script type="text/javascript">
    setwidths(new Array(75, 200, 75, 0, 200));
    setdivheight(250);
    </script>
    

    Set the entry setwidths (...) to specify the width of the columns in your table - in this case, there are 5 columns and column 4 is hidden (width = 0). Adjust the value setdivheight() to the desired height for the div that wraps the data table part.

    Andy

  • Merge with VB Script ascii_diadem_9.1_or_later.zip .csv files: how to add the column/channel with filename

    Hello

    I use ascii_diadem_9.1_or_later.zip to merge the data from several .csv files.

    The problem is that I am so some weird futuristic timestamps in a channel

    which do not appear in the original .csv files:

    How to adjust the VB Script automatically adds a new channel to the a .csv resulting

    file with the original name of the .csv file for debugging purposes?

    Any help is greatly appreciated!

    Thanks, Katharina

    Hi Katharina,

    What happens when you drag your tiara BROWSER or Windows Explorer data files in the data portal?  See all date/time values in a table in VIEW of this channel?  The problem may be that you do not have a use but which properly load your data files.  The example is designed to show you how to concatenate several files of data together, but assumes that you could provide / have your own use.  If you use work already, then look for these lines to the top of the VBScript and substituting the name of your use "CSV".  If your files have a file extension different "*.csv", then you must also change the line "FileExt '.

    FileExt  = ' CSV files, *.» CSV »  ' « *. DAT; *. CSV '.
    Use = "CSV" ' "' or 'SpecificDataPluginName '.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Can someone tell me how to expand the columns of names of files in file Explorer?

    In each program, I've never used, all the user has to do to make a column more wide is to click on the divider bar at the top (or the side of the column) and drag the wider column. Instantly. Easily. Nearly second nature without looking.

    Now, clunky Windows 8 coming, and it's so frustrating!  I went on line and saw hundreds of people griping about the same and some of the answers are right-click on the column heading and click on the size, or to choose the longest title in your file and right click and choose the size of the car, but I don't have any of these options.  I right click on the longer title and don't get choices such as car size or size.  There is not a definable column header.  Above the list of files is a bunch of stuff in the Ribbon, none of this centered above the list of files.  Above, there are a few possibilities for right click produce the word "size" in the box that opens, but is not an active link, and I can't click on it.

    I'm amazed that I bought this "top of the new version of line everyone will go to" and it does not with ease.  It is not calculate how wide to make the column... computers are great to calculate.  Why not Windows 8?   When a program allows you to work harder, take four or five steps to do one thing, that is not good design. He should do it for us, we should not be on the right side of the mouse, click on the left side, etc.

    My main question is how to do widen the column, and my secondary question is how can we get Microsoft to listen to us?  I read the comment after comment on dozens of complaints, which is one of the most common.  Thus, besides wishing they would listen to us... I'll call their hotline tomorrow and complain... what someone knows in the meantime what can I do to see all the title of my files?  Right now they are all cut in half way through.  I want to enter this bar on the right and drag it to the right to reveal the name of file in the way of how work most computer programs.

    It almost seems as if Microsoft tried to make it more difficult for their base of users and new users.   It boggles the mind.

    Of course, I'd appreciate it if someone can tell me if it is still possible to make the column wider, and I would love it if there was a response that is easy without going through a lot of steps.  Thanks in advance to anyone out there who has thought about it!

    Happy new year!

    CG

    There is no difference in the way you make the columns wider if I understand the question.
     
    I guess you see something like this (without the arrows highlighting red and pointing to the column headings and separators that you hover over, click on + hold and drag to make greater/smaller in the method you describe):

    Or are you speaking of something else than the "File Explorer" you mentioned in your question?
     
    Also - if you get the "double-arrow" cursor hover at the same place as you would drag to the size of column wider or narrower and rather - double-click on - it (as it always has) calculates the necessary width to see everything in the column to the left of the separator you are clicking on and re - size accordingly.
     
    I think that the right click of the column header (see section highlighted above) and change the size to fit refers to this menu, you would get when right-clicking on the column headers highlighted in the picture above...

    Now there's something for everyone - you have to be in DETAILS view (as always) in order to get these beautiful columns.  "Very large icons', 'Large icons', 'medium-sized icons", "Small icons", "List", "Tiles" or "Content" views will not have columns to sort by...

    In addition, if you notice in the last frame, in the "Détails" view, you must, depending on the size of your window, see "All columns to fit the size" as an option in the view menu.
     
    And the "size of all columns to fit" as shown in the two methods I could think casual to show calculations for all columns and adjusts large/more details for all visible columns in the display of the Explorer of files in all areas.
     
    Oh - and in case you want to "Détails" view to be the default view from this moment for your windows 'Windows Explorer '... Change to it (as shown above) and find the 'Options' button in the top Ribbon (usually the one furthest to the right) and click on it (not the arrows on the side of it - click it to select it) and should open a new window called "Folder Options."  Select the 'view' tab and click on "apply to folders" and all other folders that you open from the moment which will 'View' by default (unless you change it.)  * Special note * here - you can be originally 'Computer' or 'My PC' Windows Explorer - display you must have at least one folder of the selected (such as "drive Local (c)") drive and active in order to see the button 'Apply to records' assets to click.
     
    New - this is essentially the same since Windows XP.  Some of the options have changed names (heck, even Windows Explorer is referred to as 'This PC' now instead of 'Computer' and 'My Computer') and there were a few additional views added and deleted - but even advanced stuff are quite similar to the latest methods to infer.
     
    Hope that helps.  Ask if you have any other questions and please come back anyway let everyone know if the response was satisfactory!

  • How to get the column number

    Hi all,

    I'm sorry to ask this question because I found 2 different answers, tried without result. So before you go crazy, I prefer to ask!

    Thus given mySelection = app.selection [0], how is possible to get the column's selection?

    I tried app.selection [0] .parentTextFrames [0].characters.itemByRange (0, x)

    with x being app.selection [0] .index.

    but then I'm stuck as if I add ".textColumns", I get an error

    I explored the second way using app.selection [0].textColumns.item (1).insertionPoints.item (1), but once I'm stuck again.

    As a beginner I don't understand why there is no simple built-in function to call in order to obtain such a result of base

    Any help would be appreciated

    Thank you

    Ed

    Okay here goes,

    For and only for the linked text frames.

    // For and only for linked text frames.
    // Warning
    // The Good: This will PROBABLY work for you
    // The Bad :THIS IS A REALLY PRIMITIVE METHOD
    // The Ugly: It could fail in COUNTLESS cases
    // Here goes......
    
    var mySelection, textFrame, parentPage, c;
    mySelection = app.selection[0];
    textFrame = mySelection.parentTextFrames[0];
    parentPage = textFrame.parentPage;
    c = 0;
    while(textFrame && textFrame.parentPage === parentPage){
        textFrame = textFrame.previousTextFrame;
        c++;
    }
    
    alert('Column number: ' + c);
    

    Now with regard to the issue of the image columns bound text compared to the blocks of text with multiple columns of text or span. Depends on what you're trying to achieve with your workflow.

    The scripts are around written by me and others who convert multicolumn text executives to related texts related and vice versa.

    If you want to know which is more appropriate you can use with your workflow, then I suggest the regular ID forum.

    HTH

    Trevor

  • How to create the column of the table for long-form Master detail relationship

    Apex 4.1

    Oracle 11g

    I created a form master detail and see the main table hotel_list and table hotel_mapping as detailed below.

    Hotel_list

    ID HOTEL_NAME

    1 Holiday Inn

    Hotel Hilton 2

    Hotel_mapping

    ID HOTEL_NAME MAPPING_NAME

    1 Inn Holiday Inn Select hotel

    2 holiday hotel Holiday Inn Select

    3 hotel Holiday Inn Holiday Inn Hotel

    4 Hilton Hotel Hilton Hotel chain

    Hotel Hilton 5 HiltonHotel

    Table Hotel_name Hotel_list is a linked table Hotel_mapping

    When I add a line to the Hotel_mapping table for the selected row in the hotel_list table, mapping_name of column is null, therefore impossible to create the relationship between the main table and the secondary table.

    I would like to know, how to create the relationship?

    Thank you very much

    Best regards

    Yong Huang,

    simple step see creating a form detailed master with APEX - Assistant Master retail

    and check how to maintain the relationship between two tables,

    simple return the packaged application «Sample of Masters details»

    and try to understand this concept...

    In your example, use Hotel_list.ID as a foreign key in the table Hotel_mapping

    and maintain the relationship with the column ID...

    and choose the display type of the column Hotel_list.ID in table Hotel_mapping as List(Query Based LOV) select.

    otherwise the best way is to create sample on oracle.apex.com

    I hope this helps...

    Leave.

Maybe you are looking for

  • Link-5 support

    I recently bought a Link-5 keyboard and a mouse. I thought the goal was to own only receptors and therefore free from the USB slots. However, I followed the instructions and can not get both devices work without two connected receivers. I thought tha

  • error Ox8007064a aggiornamento app

    Non riesco ad installare nessun aggiornamento delle approx. e installarne di nuove even. It could be he di not misconfigured windows firewall? Defender antivirus e Malwarebyte s help

  • Windows updates failed (I think due to losing files to uninstall)

    Hello. Earlier, I thought (stupidly) I got a lot on unnecessary temporary files on my system and remove a bunch; somewhere in the $Uninstall files.  Since then, I had problems with all the various updates.  I've sorted most but the four following win

  • Windows S3 key question

    Have had my S3 for 6 months now and have noticed lately that windows key seems to randomly turn and when entering, suddenly my taskbar will show when I type T, my gadgets will be display on RHS (G) screen, etc. as if the windows key is being depresse

  • How to find or get dell vista bit opus disk for my hp a6030n c.p business32 prod.key.

    My comp. is more prod. label key on it.could'nt reinstall from my vista home Prem systems drive because its scratched so I bought a disc of systems op where I bought my laptop, Did'nt know it was a drive to dell vista business. Installed but I can no