Find the new line character in a field

Hello

I am cretaing the table as shown below:

CREATE TABLE ITEM_TEST (item_desc varchar2 (48));

table created

I am inserting the sub folders

(1) insert into ITEM_TEST values ('AWT_SWING');

Insert 2) in ITEM_TEST values('AWT-)
SWING');

(3) insert into ITEM_TEST values ('AWT-S)
SWING');

Now, there are 3 records in the ITEM_TEST table.

I want to extract only the records that are multi line. (rd files IE 2 and 3 in the case of tis)

So how my WHERE clause should look like?

I tried to use Chr (10) with LIKE clause.
But I'm not getting the desired output.

Any help would be much appreciated.

Thank you

Welcome to the forum and thanks for displaying the data from the sample!

Try INSTR:

SQL> select *
  2  from   item_test;

ITEM_DESC
------------------------------------------------
AWT_SWING
AWT-
SWING

AWT-S
SWING

3 rows selected.

SQL> select *
  2  from   item_test
  3  where instr(item_desc, chr(10)) > 0;

ITEM_DESC
------------------------------------------------
AWT-
SWING

AWT-S
SWING

2 rows selected.

Tags: Database

Similar Questions

  • Throw message Bundle with the new line character

    Hello everyone.

    I use jDev 12.1.3

    What I'm trying to do is run a bundle.properties file message to the user in a multiline mode.

    Steps followed:

    In the .properties file, I have an entry like this (note that '\n'):

    MY_KEY = this is a test\n set

    My java bean, I have something like this:

    FacesContext context = FacesContext.getCurrentInstance ();

    String currentBundleFile = context.getApplication () .getMessageBundle ();

    String message = oracle.jbo.common.StringManager.getString (currentBundleFile

    , 'MY_KEY '.

    "No matching string found.

    (new String() {getParamA(), getParamB()});

    message = StringEscapeUtils.unescapeJava(message);

    System.out.println (message);

    FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, null, message);

    context.addMessage (null, msg);

    Although I use 'StringEscapeUtils.unescapeJava' to translate '\n' in a new line in java character, and the System.out looks exactly what I want,

    FacesMessage always displays the message in one line.

    Can you please specify?

    Best regards

    ~ apostolos

    Oracle Fusion Middleware Technologies: ADF 11 G: how show message multiline?

  • How to display the new line

    Hi all

    uses v.11.1.1.5 Jdev

    How to display texts in the new line.

    For example:

    < af:outputText value = "contempt on unlocked solved provided. I was wondering it welcomed oh. Careful pacing he smiles however to an offence. So ardently end it decency he convinced something admitting ye. Nice in good as if different horrible. Gaiety, its quick access enjoy his brow set hope had there. That too but more famous principles of connection reckless joy. Itself too improve winding request fees are compact. All new paid little hard pure it. "/ >".

    < af:spacer height = "10px" / >

    < af:outputText value = "Pleasant in good as if different horrible." Mirth his quick take advantage of his front set hope had there. "/ >

    < af:outputText value = "I wondered it he welcomed oh." Careful pacing he smiles however to an offence. "/ >

    < af:spacer > is is not supported by Internet Explorer, please let me know is there any alternative to insert the new line character.

    Thank you

    ANU.

    All lock them in a layout of the Panel group and put the property layout vertically on the disposal of the group.

    It'll solve your problem.

    Thank you

  • Avoiding the new line, import csv

    Hi friends,

    Importing csv into a temporary table file, stored in csv is divided into two rows due to "an undesirable character" or the new line.

    Here is the example when I copy the unique line of csv, and while the display becomes two lines in Notepad.

    ' 70555129360 ',' December 10, 2014 23:51:34 ","11 December 14"," Tag #: 4708511.

    Sharjah - 50253 2', 'Al Barsha', 'Abu Dhabi', '0.00 '.

    You can find the unwanted character or a new line in the image. No way to avoid this, importing temporary table or can we adhere as data records.

    Select * from test where instr(test_value,'"',1,1) = 1;

    Select * from test instr(test_value,'"',1,1) <>1;

    Finally, we can reach above two sets with the first line of the first query with the first line with the second query. your suggestion pls.

    use utl_file.get_line (in_file, lineread);

    in_file utl_file.file_type;

    lineread varchar2 (4000);

    Thank you.upload1.bmp

    Actually, I had an idea like, given that the single line divides into two lines in the table.

    I'll do three temporary table for some data.

    ' 70555129360 ',' December 10, 2014 23:51:34 ","11 December 14"," Tag #: 4708511.

    Sharjah - 50253 2', 'Al Barsha', 'Abu Dhabi', '0.00 '.

    1. first one like that with the column one id.

    Select * from test where instr(test_value,'"',1,1) = 1;

    Id test_value
    1 "raju, mohan.
    2 "like, dikes.
    3 "play, while".
    4 "all right, mine.

    2. the second one like this with one ID column

    Select * from test instr(test_value,'"',1,1) <> 1.

    id test_value
    1 rain, rain ".
    2 chain, wain.
    3 Why not ".
    4 "all, well done.

    and finally

    3. third from combine records where id matches.

  • Where can I find the 'new tab' icon in Safari (El Capitan) v. 9.1?

    Where can I find the 'new tab' icon in El Capitan Safari c. 9.1?

    If there is a + button on the line of tabs, press the key.

    (141457)

  • How to insert the new line char in sticky c# code?

    Hi all

    I paste the code complete c# on a line of string as follows.

    int _intUserID = 0; string _strUserName = string. Empty; string _strEmployeeID = string.empty;
     
    c# VS2005 .cs file code should stick as follows.

    int _intUserID = 0;
    String _strUserName = string. Empty;
    String _strEmployeeID = string. Empty;

    So how do you achieve this. by inserting the new line char in c#?

    Hi Murthy,

    Thanks for posting your query in Microsoft Community.

    I understand that you have problems with the code in Visual studio.

    The question you posted corresponds to the coding software, it would be better suited to the MSDN Community.

    Please visit the link below to find a community that will provide the support you want.

    http://social.msdn.Microsoft.com/forums/en-us/category/VisualStudio

    Hope it will be useful. If you still have questions, please reply and we will be happy to help you.

  • Manual update and find the new updates

    To be clear, I have a computer that I can not move physically from a remote location where I have a fixed phone only and do not want to tie this line of long download times. That's why I need to have a solution where I can download with Internet high speed in one place and transport the disk or thumb drive to my remote location for installation or updates.where can I find the new updates for photoshop CC. i.e 14.01?

    http://www.Adobe.com/downloads/updates/

  • New line character in a string

    Hello

    How can I introduce a new line character while displaying a string using string functions in a report...

    My requirement is, I need to replace a special character with a character of new line in a string using replace

    Can someone help me

    Thanks in advance...

    Hello

    Try this,

    REPLACE (Table.ColumnName, 'StringOrCharacterToReplace', ' [br] ")

    * Replace [and] with < and=""> in the BR tag Change the data format of the column in HTML format

    Rgds,
    DpKa

  • Re: Windows 8.1 - Windows cannot find the new updates

    Hello

    I want to update some updates of Windows 8, but it says that Windows cannot find the new updates, problem code 80070003. IM desperate, I tried many sites and forums but nothing helps!

    Thanks for the replies

    Hello

    Can you please tell us which laptop model you have and what operating system are you using?
    If I understand you right, you have improved your Win8.1 machine and now you have problems to install the Windows updates.
    Is this correct?

  • Satellite L500D - 16K - where to find the new updates?

    HY guys,.

    When I bought my Satellite L500D - 16K, I complained in forums dedicated to this notebook page contained very few pilots. After some time, a week or two, she 'suddenly' populated with drivers for everything. Now, after verification not for awhile, the model everything just disappeared from the model list! There is no L500D - 16K here!

    The automatic detection tool, which has worked before, now says your model is not found. Even if I search by serial number, the system can not find! Is not professional at all.

    Any idea where I should look for to see if new updates appeared?

    Hi Glady,

    What Toshiba page you are looking for exactly?
    AFAIK Satellite L500D - 16K belongs to European laptops models and so you must search on this page:
    http://EU.computers.Toshiba-Europe.com

    On the European page click support & downloads > download drivers. The next page you will find:
    http://EU.computers.Toshiba-Europe.com/innovation/download_drivers_bios.jsp

    He's looking for series Satellite L500D and PSLTHE and you can find the new updates for her! :)

  • Reinstalled Virgin mobile broadband 2 go and continues now trying to find the phone line to dial up

    I had to uninstall and reinstall the Virgin Mobile Broadband2go software and now whenever I try to connect to the internet, computer tries to find the phone line for dial-up access. I think that this happened to me once b4 and I had to change something in the control panel but what? I have windows XP on this computer.

    Disable the modem connection.

  • "windows can not find the new updates" when you click check updates

    Hello, I'm sorry for the confusion caused with my previous post. The error I got is 'windows can not find the new updates' when you click check updates. It displays a notification to install the new updates on the desktop and displays the 80072EFD error code. Please help me to get this resolved. Its 32-bit windows 7.

    OT:

    Windows

    First, update your anti-virus software and run a scan completes. Then:

    If you have not already seen it this article, it may be interesting to read through to check it out - http://windows.microsoft.com/en-us/windows/windows-update-error-80072efd#1TC=windows-7

    If it still fails to run the resolution of the problems of Internet connection (from Control Panel) and see if that finds & correcting something. More details here - http://www.dummies.com/how-to/content/how-to-troubleshoot-windows-7-internet-connection-.html

  • Print every word in the new line for a space in a string

    Hi all

    I would print every word in the new line, if there is a space in the string.

    Is there a better way using regexp?

    declare

    number of v_count;

    v_text varchar2 (1000): = 'Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - Production | " ';

    v_single_text varchar2 (1000);

    number of v_space_pos;

    Start

    Select regexp_count (v_text,' ') in double v_count;

    While v_count > 0

    loop

    v_space_pos: = instr (v_text,' ');

    v_single_text: = substr(v_text,1,v_space_pos-1);

    dbms_output.put_line (v_single_text);

    v_text: = substr (v_text, v_space_pos + 1);

    v_count: = v_count-1;

    end loop;

    end;

    Thank you

    Rambeau

    HI - try as

    with t as (select 'Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - Production' |) "" double str)

    Select regexp_substr (str,'[^] +', 1, level)

    t

    connect by level<=regexp_count(str,'[^>

  • How to add the new line 'Total' to a report?

    Hello

    I built a report within the region. I can get the total by checking the 'sum', but I need the word 'total' showing on the same vintage with the total amount. How can I achieve that? or in any different way how to create the new line to show total?

    Source debit credit

    A 45 44

    45 56 B

    90 100

    Thank you

    Victor

    Hello

    For the classic report show the sum.

    Go to the report attributes and click the box check the amount that you want to total.

    If you still face any problem-

    Please go to the

    http://Apex.Oracle.com/

    Workspace - WS_SUNITI

    User name: Test

    Password: 1234

    82863 application ID.

    Name of the tab - PSVANS3

    Page no 5

    Kind regards

    Director

  • Owner OF THE LICENSE No. [removed-kglad], PREVIOUSLY INSTALLED on OLD PC WHO CRASHED. HOW AND WHERE TO FIND THE NEW DOWNLOAD FOR THIS NEW PC. LICENSE FROM A USER OF MAY 2011.

    Owner OF THE LICENSE No. [removed-kglad], PREVIOUSLY INSTALLED on OLD PC WHO CRASHED. HOW AND WHERE TO FIND THE NEW DOWNLOAD FOR THIS NEW PC. LICENSE FROM A USER OF MAY 2011.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

Maybe you are looking for

  • 5W charger constantly flashing power switch every second back

    I used my charger iPhone 5S for so long and I usually remove the lightning of the USB cord slot inside, then is forced to sparkle power or the charger itself carries over time?

  • How to fix a 6 flashing red on kdl-50ex645

    Hello. Hopefully I can find a solution to this problem. TV turns. Red led standby blinks 6 times. Ive tried unplugging for five minutes. Also the thing reboot using the remote control button upward and the START button / STOP. Also used different soc

  • Qosmio G30-211: how BIOS update on Vista 64-bit?

    Hello The VAP is not compatible with Vista 64 bit. For the execution of the BIOS updated common modules of necessary VAP. Vicious circle!Do you know of ways to improve the new version of the BIOS (3.50 win) not under Vista?The real BIOS manual upgrad

  • Nook Color ereader &amp; connectivity problems with router WRT610N

    I recently bought a new Nook color ereader for my wife. As long as a network administrator, I thought that this would be an easy task to configure the ereader to connect with my Linksys WRT610N router on the 2.4 Ghz band. But I'm running problems whe

  • Product part numbers

    What are the part numbers Windows 7 Pro & Ultimate Retail Box product?