Display records with a special character to the end user

Hello

What follows with the exception of special characters such as the comma, colon (:), space, preview, brackets [], parenthesis(), key entry, quote (') single, the double quotes (""), full stop (.), slash (/) forward, backward slash (\), + (plus), % (percentage),?) (questionmark), # (pound sign)

-> if anyone is available in the record, I want it back and also show the special character. for example, retrieval must be id 21, 22: 16
-> also I want a list of special characters like message in the sql
for example, 16 ID, (¶, §) must be displayed in the output



WITH abc AS
(

11 SELECT ID, ' he is suffereing
jaundice"summary FROM DUAL
UNION ALL
Order 12, "we can go to the bus stop. OF THE DOUBLE
UNION ALL
SELECT 22, 'a mΦnsoon is provided affect≈the region during the next φ a few days' OF the DOUBLE
UNION ALL
SELECT 16, "Film¶city looks like go§d." DOUBLE
UNION ALL
SELECT 21, "The International @l ¥ mpic Committee moved the bike could Calm fears scratching the Olympic Games." OF THE DOUBLE
UNION ALL
SELECT 17, ' John F Kenny was a "young president" America "OF the DOUBLE
UNION ALL
18 SELECT, ' the Department of elections, identified (10) polling stations for voters to go to
thei\r January 26 vote for the by-election of Punggol East Single Member constituency ' FROM DUAL
UNION ALL
SELECT 19, "the pilot of the helicopter that + crashed in Central London were thousands of"
hours of experience of aviation including flight % for films such as die another day and save #Private #Ryan?' THE DOUBLE)
Select id, summary, 'show special char' in splch
ABC
;

OUTPUT
SUMMARY of the splch ID

Film¶City 16 looks like go§d. ¶§
21 the International @l ¥ mpic Committee moved the bike could Calm fears scratching the Olympic Games. @¥ O
22 a mΦnsoon is planned for the region during the next φ affect≈the days Φ≈φ

Hello

Here's one way:

WITH     got_special_characters     AS
(
     SELECT  id
     ,     summary
     ,     REGEXP_REPLACE ( summary
                      , '[][[:alnum:],: ()''"./\+%?#'  ||
                            CHR (10)                ||
                     '-]'
                      )     AS special_characters
     FROM    abc
)
SELECT       id
,       summary
,       special_characters
FROM       got_special_characters
WHERE       special_characters     IS NOT NULL
ORDER BY  id
;
{code}
Inside square brackets, the characers ']' and '-' have special meanings, unless you use them in places where the special meaning can't apply.  That means the ']' must be the first character inside the square brackets (Oracle assumes you're not ending the set right after you begin it) and the '-' must be the very last character inside the square brackets.
Depending on what newline is on your system, you may want to use CHR (13) in addition to, or instead of, CHR (10).

it would be more efficient to use the TRANSLATE fucntion, rather than REGEXP_REPLACE, to produce special_characters.  You'd have to list all 80 or so of the non-special characters, but you'd only have to do it once.
{code}
WITH     got_special_characters     AS
(
     SELECT  id
     ,     summary
     ,     TRANSLATE ( summary
                 , '=0123456789ABCEDFGHIJKLMNOPQRSTUVWXYZabcedfghijklmnopqrstuvwxyz,: -[]()''"./\+%?#'
                       || CHR (10)
                 , '='
                 )     AS special_characters
     FROM    abc
)
SELECT       id
,       summary
,       special_characters
FROM       got_special_characters
WHERE       special_characters     IS NOT NULL
ORDER BY  id
;

Published by: Frank Kulash on 16 January 2013 12:35
TRANSLATE the code added.

Tags: Database

Similar Questions

  • Need help to create a document with shapes that will prevent the end user from editing.

    I am a small business owner and I want to create estimates for my clients who are attractive and easy to understand. My dilemma is this: I need to have forms in the document - my employees need to enter the name/address/price info etc for each customer. This is not a problem as long as I print the document - but I wish I could so by e-mail. Is there a way I can create a PDF with forms that my employees can complete and that same PDF sent to the client without the client view/edit fields? I was hoping I could save it in a different format that won't allow editing? I tried to use the read-only option, but keeps my employees to fill out the required fields before he gets to the customer.

    After completing the forms, you can flatten the file that allows you to convert the

    fields of form to static content.

    You can use a tool like this for this purpose:

    http://www.UVSAR.com/projects/Acrobat/flattener/

    Friday, January 23, 2015 23:51, christ63596384, [email protected]>

  • How to display records with zero on dashboard

    Hi expert,

    If I have a product dimension table,
    a fact table


    If there are records containing values in the comic book, A product void.

    If the logical column of the fact is SUM (...).

    How to display records with values null in the dashboard.

    Use the outer join?

    or another method?

    I don't want to use outer join because it makes the PRD be so complicated

    Jin
    Pull all of the columns in the criteria, it will show NULL for a product

    For zero, on the done column use IFNULL(fact_col,0)

    that looks like this

    http://a.imageshack.us/img180/6616/Ifnull.jpg

    Thank you
    saichand.v

  • delete the special character in the data

    Please guide me when the user enters data across before as letter size, then he insert a special character also include to store.
    Then when I have generations who, in xls sheet, then this special character are act as entered the key. see examples of data like this

    example of data *. * like that

    I would like to know how to cut this special character in the documents.

    Vincent HB

    You could try to build something with the OWA_PATTERN package:

    DECLARE
      v_text VARCHAR2(255) := 'my data  like this';
    BEGIN
      v_text := REPLACE(v_text, ' ', '_');
    
      OWA_PATTERN.CHANGE(v_text
                        ,'\W'
                        ,''
                        ,'g');
    
      v_text := REPLACE(v_text, '_', ' ');
    
      DBMS_OUTPUT.put_line(v_text);
    END;
    /
    my data  like this
    

    C.

  • When I open a link irc with a string name that contains "~" at the end, firefox (14.0.1) opens the same channel name but with "7%" instead of "~" at the end

    When I open a link irc with a string name that contains "~" at the end, firefox (14.0.1) opens the same channel name but with "7%" instead of "~" at the end
    http://img835.imageshack.us/img835/2856/clipboard05nq.jpg

    I can't open the image, but I can say something in general about the tilde.

    The tilde "~" is an unreserved character and that's why it can be replaced by its form encoded percentage '% 7' inside a URI without changing the meaning. See

    http://en.Wikipedia.org/wiki/percent-encoding

    According to article 2.3 of RFC3986 we should prefer the encrypted form so this behavior seems to be somewhat outdated.

  • ALWAYS the end-user license agreement appears with invites to PRINT, ACCEPT or REFUSE them all products ALL MS Office are open - all MS products are ENABLED!

    I've just updated from XP Pro on WINDOWS 7 OS _ I reinstalled my MS Office 2003 product set and they were almost OK. My problem - ALWAYS the end-user license agreement appears with the prompt to PRINT, ACCEPT or DECLINE each time I try to use one of the MS office products is open. It's not a big deal, but it's annoying to get that invites each and everytime I open WORD, EXCEL, OUTLOOK, etc.

    What can I do to solve this problem.

    Thank you
    Bob

    Hi Carey.

    Thank you very much for your help. It works! Once again THANKS - Bob

  • I need help! I try to open my PDF but I get this message on my Macbook Pro! "Before you display PDF documents in the browser, you must launch Adobe Reader and accept the end user license agreement, and then quit and relaunch the browser."

    I need help! I try to open my PDF but I get this message on my Macbook Pro! "Before you display PDF documents in the browser, you must launch Adobe Reader and accept the end user license agreement, and then quit and relaunch the browser." What should I do?

    Do exactly what the message says, and it will go away.

  • Before displaying PDF documents in the browser, you must start Adobe Reader and accept the end-user Li

    Since two or three weeks, whenever we try to open a PDF file, we get the following message:

    Before display PDF documents in the browser, you must launch Adobe Reader and accept the end user license agreement, and then quit and relaunch the browser.  There is no link in this post, and I can't find where to launch Adobe Reader to accept this agreement.  I do not understand why we started having problems all of a sudden, but it is extremely frustrating!

    We have a Mac OS X v. 10.7 Safari v. 6.0

    Thank you very much!

    If you have installed the Adobe Reader software to the deafult location you will see in your hard drive / Applications folder.

    Try this:

    1. Quit Safari

    2. from Finder > go > go to folder... > type in the path: /Applications/ and click 'Go '.

    3. run "Adobe Reader"

    4. accept the end user license

    5. open a PDF file in Safari.

  • Adobe Reader says I did not accept the end user agreement and do not open on Mac.

    "Before you display PDF documents in the browser, you must launch Adober Reader and accept the end user license agreement, and then quit and relaunch the browser."

    I tried from reason. Without success. Any thoughts on how to solve this?

    With the closed drive, go to your Applications folder, double-click the drive icon and follow suit. Restart the player when it is done.

  • Can you take screenshot without permission from the end-user? Help, please!

    Hello

    I recently submitted an approved application that is available in the app world. Screenshots takes in the game to make animations faster. The question is, in order to take screenshots, you must use a secure api and not the end-user give "permission" for the app to 'save '. End users are reluctant to 'accept' because they think private information are used, etc...

    Question: is there a way to make a capture of screen-app without the user 'approve' record? OR should I just, but a little warning at the beginning saying... "the following approval is needed to make the application faster, but no private info is obtained, etc."

    Thanks for your help and time!

    Unless they received him in their default permissions, you need to ask.

  • How to make a page hidden to the end user?

    Hello world!

    How are you?

    I work in the APEX 4.2. I have a user admin and several end users.

    I want to restrict user access to view a page.

    for example I want to do 'page 2' as the home page for the admin user

    and "Page 3" on the Homepage of the end user.

    I also want to end users never see the "page 2".

    How can I do this?

    Please help me someone.

    Concerning

    Magali.

    M.,

    ce4ce1ce-2e6d-4486-87b1-ee5f71f1fa71 wrote:

    for example I want to do 'page 2' as the home page for the admin user

    and "Page 3" on the Homepage of the end user.

    to redirect to another page Admin and others, see thread problem with authentication and owa_util.redirect_url

    ce4ce1ce-2e6d-4486-87b1-ee5f71f1fa71 wrote:

    I also want to end users never see the "page 2".

    create and see user authorization scheme providing security through authorization

  • Hello, how get the permit numbers on site licenses (LWS), the identification number of the end user, nothing happens. Thank you

    Hello, how get the permit numbers on site licenses (LWS), the identification number of the end user, nothing happens. Thank you

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • Cannot open the file PDF as computer Mac tells me to accept the end user license agreement and to relaunch the browser... How can I do this? URGENT!

    Cannot open the file PDF as computer Mac tells me to accept the end user license agreement and to relaunch the browser... How can I do this? URGENT!

    With closed drive, open your Applications folder and double click (left) on the drive icon.

  • Notify the end user there will expire

    Hello

    I am trying to build a job every night that will send the end user that he intends will expire in 10 days reset your password

    If they do not then I want to block their account on the 11th day. Finally purge there apex in 30 days

    How can I preschool on this?

    I know there is utility APEX_UTIL. END_USER_ACCOUNT_DAYS_LEFT but I am not able to access outside the apex approx.

    Set serveroutput on

    DECLARE

    l_days_left NUMBER;

    BEGIN

    C1 IN (SELECT user_name from apex_workspace_apex_users) LOOP

    l_days_left: = APEX_UTIL. END_USER_ACCOUNT_DAYS_LEFT (p_user_name = > c1.user_name);

    -htp.p ("end user :'|| account C1.user_name | |' will expire in ' | l_days_left | "days");

    dbms_output.put_line(l_days_left||) C1.user_name);

    END LOOP;

    END;

    It gives this error

    ORA-06502: PL/SQL: digital error or value

    ORA-06512: at "SYS." OWA_UTIL", line 356

    ORA-06512: at "SYS." HTP", line 1368

    ORA-06512: at "SYS." HTP", line 1443

    ORA-06512: at "SYS." HTP", line 1735

    ORA-06512: at "APEX_040100.WWV_FLOW_ERROR", line 324

    ORA-20987: unauthorized access (package for the undefined security group variable).

    ORA-06512: at "APEX_040100.WWV_FLOW_ERROR", line 743

    ORA-06512: at "APEX_040100.WWV_FLOW_ERROR", line 1064

    ORA-06512: at "APEX_040100.WWV_FLOW_FND_USER_API", line 24

    ORA-06512: at "APEX_040100.WWV_FLOW_FND_USER_API", line 1890

    ORA-06512: at "APEX_040100.HTMLDB_UTIL", line 1756

    ORA-06512: at line 5

    06502 00000 - "PL/SQL: digital error or the value of %s.

    Can someone guide me pls.

    Thank you very much

    Neel

    step, I used to do this work.

    1. create a button on the login page, when then click navigates to the next page

    2. place of instruction to the next html page and the box to recognize.

    3. on the dynamic recognition action fires and who will sail user to this url

    popupURL ("http://abc.com:81/apex/f?") p = 4550:7:1110023104121501:NO:F4550_P7_COMPANY:WWWWWWWWW');

    NICOLAS is your workspace.

    4 USER will receive an email with the temporary password to reset the password.

    in this way I will leverage the integrated apex resets the mechanism.

  • Ability to create a Message in response to the end user by selecting 'Cancel' or 'block' after clicking on a link to a URL?

    Hi all:

    When a user clicks on a link/button to connect to a URL, the Security dialog box appears automatically giving them options 'Allow', 'Block' or 'Cancel '.  Should they choose 'Block' or 'Cancel', can trigger us a message box informing them that they blocked or cancelled the connection?

    With traditional message boxes, we are making them, that is to say

    var rtnFromBox = xfa.host.messageBox ("Information is missing.\n\n are you sure you want to continue?", "Missing Information", 1, 2);

    If (rtnFromBox == 4) {}

    xfa.host.messageBox ("Let's keep DC.","", 1, 0);

    }

    But with the security of URL dialogue, we are not calling it a variable - it happens.

    I suppose a similar question could be applied to a Save"" button.  Where if the end user selects 'Cancel' in the dialog box "save under", a warning may pop up to remind them to register quickly.

    Thoughts?  Thank you!

    Brian

    I don't see a way to do what the Security dialog boxes are not executed by the JavaScript API and does not return all the values that you can use.

Maybe you are looking for

  • HP preferred integration bug?

    Integration attempt in trying to get the volume of a torus of revoling circle around the axis y. Central circle of distance from the origin R and radius r using slices. Standard simple calc problem often given to students. Works well on HP50 and TI-8

  • New Photo app version 1.3 poor images?

    Moved from iphoto to apple photo with upgrade to el capitan. I also have adobe photoshop elements. I downloaded the images from my camera and saw their photo and jpeg images look awful compared to those loaded into adobe - less detail in low light, w

  • HP Officejet Pro 8610: printer says ink cartridge is damaged

    Hello, my printer was working well, but the colors were not true to life printing.  I tried to print a page of print quality diagnosis and this prompted to say that the ink cartridge is damaged. Now, it will not be printed. Help, please.

  • Exchange 2007 and Outlook 2007 (public folder favorite Outlook)

    Adding a public folder to favorite Outlook Under favorite folders, all bookmarks that link to public folders have "public folders" added to name favorites. This means that I must make the column wide artificially in order to not see the number of unr

  • HP Deskjet 3325 color inkjet printer not to proceed with the installation of premium window 7

    Mr President. HP Deskjet 3325 color inkjet printer not to proceed with the installation of premium window 7 installed hp laptop hp pavilion dv4. Please send me the solution to my email address * address email is removed from the privacy *. With respe