Special characters in where clause

HI,
how can i suppress the meaning of special characters in a where clause?
for example consider the following query
select * from roster_data
where landmark like 'Bhavani Mini Market (General Store ) Teacher's '
When i execute the above query i am getting the following error
The following error has occurred:
ORA-01756: quoted string not properly terminated
any help pls
cheers
RRK

Use double quoter (two symbol ' ), like this:
select * from roster_data
where landmark like 'Bhavani Mini Market (General Store ) Teacher''s '

Similar Messages

  • Special characters in IN clause

    I've a table  emp . One of the columns in that table is email.
    The dat in that column can be like below having special character (') in the email-id
    sajet'[email protected]
    cete'[email protected]
    create table emp (name varchar2(11), email varchar2(111) )
    insert into emp values ('saj' , 'sajet''[email protected]')
    insert into emp values ('cet' , 'cete''[email protected]')
    If I've to select the specified data ,in the IN clause I use escape character and get the data
    select * from emp where email in ('sajet''[email protected]' , 'cete''[email protected]' )
    If I've to use the 100 email-id in the IN clause , then i've to mannually insert escape character in the IN clause .
    Could you please suggest me the best way to get the 100 email-ids in my query .

    select
    * from
    emp01
    where
    email like '%'||''''||
    and
    rownum<=
    100

  • LIKE clause with special characters

    Hi All,
    I'm having problems with LIKE clause that contain special characters.
    I'm doing something like
    SELECT * FROM Table WHERE FieldName LIKE '%10' & Chr(37) & '%'
    But it doesnt seem to recognize the pattern as 10%. Instead it is returning all the hits for 10?
    Help much appreciated
    Sudha

    hey..cud u get the problem solved?

  • Why can't I use special characters in my password? This isn't 1995 anymore where a lot of people don't have QWERTY keyboards.

    Why does your site not allow the use of special characters in passwords? Do you not want your customers to be as secure as possible?
    As a network security admin, limiting passwords to prohibit special characters is an extremely poor security practice.
    Telling me that my security as a customer is important, then tell me that your own system limits my ability to keep my account as secure as I would like seems quite backwards. I understand the archaic reasoning was that not all devices have a QWERTY keyboard, this logic is flawed and is no longer necessary.

    Hi, sorry to hear that you are experiencing these problems, but sometimes a new machine (be it Apple, Dell, whatever) can be defective right out the box - its not unheard of.
    If your machine came with defective hardware and is still under warranty (seems to be the case here) then you have nothing to lose taking it back to where you bought it and, if there really is defective hardware present I am sure they'll rectify the problem.
    A small note: these problems are not manufacturer-specific - its pointless blaming the manufacturer as I can assure you this happens with ALL brands. Apple supplies quality hardware and software - I know of a user who has had a machine switched on since 1987 without problems

  • Finding undisplayable characters in a field with a WHERE clause

    Oracle_Rdb7 for_OpenVMS Release 7.0.1. I have a field in my table that has been loaded with data that contains "return/line feed" characters (I'm not sure of the ASCII hex representation) which can't be displayed and show up as "." on my screen. How can I code a WHERE clause that will find these characters, e.g., SELECT * FROM TABLE1 WHERE NAME CONTAINING <here is where I want to put the ASCII hex value for a "return/line feed" character>? Also, how could I get the actual ASCII hex code for these characters to display, e.g., "31" instead of "1"?

    a 'return' is CHR(10) So you can:
    select * from my_table where text_fld like '%'||CHR(10)||'%'

  • Special characters - where are the rest?

    seems to me the latest apple OS  has cut down on the number of special characters available in Safari>Edit.  Specifically, I make product descriptions with measurements, and often used those nifty little fractionslike 3/8 - anybody else notice this change to Specila Charcters.

    Thanks you guys - I got it - yes I stumbled on the vocabulary there.
    I was able to go to that page, System Preferences>Language and Text>Text which shows me which symbols to select so that for example 1/8 looks compressed into one character space.
    But when I use 1/8 in my writing it does not automaticallay compress as expected. 
    Finally - and this is where my humble little thread started - when I go to Special Characters I am no longer offered these options.

  • Where are the Symbols and special characters?

    Dears, 
    suddenly I the special characters had been crushed and no more exist.
    please check the image for more clarification.. What is the reason, how can I fix this issue???
    Mohammad Yousri - http://mohammad-yousri.blogspot.com

    what font do you need, you may need to install Windows fresh and next time, do not mess with the fonts
    I have a lot of fonts installed that came with various Adobe products.
    Corsair Carbide 300R with window
    Corsair TX850V2 70A@12V
    Asus M5A99FX PRO R2.0 CFX/SLI
    AMD Phenom II 965 C3 Black Edition @ 4.0 GHz
    G.SKILL RipjawsX DDR3-2133 8 GB
    EVGA GTX 6600 Ti FTW Signature 2(Gk104 Kepler)
    Asus PA238QR IPS LED HDMI DP 1080p
    ST2000DM001 & Windows 8.1 Enterprise x64
    Microsoft Wireless Desktop 2000
    Wacom Bamboo CHT470M
    Place your rig specifics into your signature like I have, makes it 100x easier to understand!
    Hardcore Games Legendary is the Only Way to Play!

  • Where can I add special characters?

    I see discussions about adding special characters but do not know how to do this. I have some titling with foreign alphabets. Can you help? Using educational version of FCP purchased in 2004. Thanks.

    Here's the illustrated version:
    Let's set this up:
    That was pretty easy, let's now put it into use:
    Here is the Character Palette. Double clicking a glyph will place it into your text document or a text entry box in any application.
    The Keyboard Viewer. Press the physical keys on your keyboard to diplay the location of accented glyphs. Take note and use what you have learned by pressing the approprite key combination.
    With the Alt (Option) modifier key held:
    Lastly with Shift/Alt:
    There are also other modifier key combinations that will reveal more glyphs.

  • Find All Special Characters in a SQL Server

    I would like to find all Special Characters in a table. I am currently using the code below. Not sure if this gets all of them.
    select  top 50 *
    from [dbo].[SV20150122]
    where street LIKE '%[^0-9a-zA-Z @\.\-]%'
    SQL

    Depends on what you want to count as a special character.  Depending on your collation, your query might not consider é (for example) as a special character.  The same goes for other accented letters.  If that's what you want, then fine. 
    If that is not what you want, you may want to do
    where street LIKE '%[^0-9a-zA-Z @\.\-]%' Collate Latin1_General_BIN
    In any case, you can see exactly which characters are NOT counted as special characters on your system (with and without the Collate clause) by running
    Declare @Test Table(ID int, MyData char(1));
    ;With cte As
    (Select 0 As Number
    Union All
    Select Number + 1
    From cte
    Where Number < 255)
    Insert @Test(ID, MyData)
    Select Number, CHAR(Number)
    From cte Option(MaxRecursion 256);
    Select ID, MyData From @Test
    Except
    Select ID, MyData From @Test
    Where MyData LIKE '%[^0-9a-zA-Z @\.\-]%'
    Select ID, MyData From @Test
    Except
    Select ID, MyData From @Test
    Where MyData LIKE '%[^0-9a-zA-Z @\.\-]%' Collate Latin1_General_BIN
    Note: the above code assumes the column street is char or varchar. 
    Tom

  • Passing where clause with spaces from forms to reports

    Hi,
    Has anybody passed where clause as lexical parameter with spaces from forms to preports..
    I have seen people mention that, we can replace the spaces with special characters and then replace it again in the before trigger report..does anyone have a working example of that??
    Thanks.

    i solved the issue..
    i had written the procedure in the before report
    trigger instead of writing it in the before parameter
    form trigger..
    it works perfecto now..
    Thanks.We had removed the spaces and used commas to delimit each item.
    So you are saying spaces are not a problem in 10g?

  • How to query the data using control item avoiding special characters

    I had a small doubt in d2k.
    i created a emp block
    in that we r providing a control item for empno
    i am using that control item for querying emp details based on that control item value.
    if i am giving single quote in that control field it is querying for all the records in the emp block
    i am providing the where clause like this
    'empno like '||''''||:m_empno||''''
    can u pls clear this doubt for me.
    thanks in advance.

    one thing i forgot to add.
    we shouldnt use ascii values for the special characters.
    means we shouldnt use ascii values for restricting the sspecial characters.
    pls get me the reply as soon as possible
    thanq

  • XML Publisher report not printing excel output due to special characters

    Hello,
    I am trying to create a xml publisher report which should display the output in excel. But the program completes with a warning status and the output is displayed as XML instead of excel, with some errors "An invalid character was found in text content. Error processing resource " and i think these errors are due to the special characters(eg: city/province - A Coruña, Cáceres). If i give rownum < 10 in my query, where there are no such characters it works fine and i am getting an excel output.
    Tried changing the XML encoding and it doesn't help (both mentioned below)
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml version="1.0" encoding="UTF-8"?>
    Do anyone have a solution for this
    Thanks in advance
    Edited by: user10317098 on Jan 16, 2012 10:58 AM

    Hi,
    Check this links that might help you..
    https://forums.oracle.com/thread/1018488
    http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
    Here the Exact solution from Oracle
    In the XML PUBLISHER ADMINISTRATOR Resp..
    Click the administration..
    then Click HTML Output
    Then in the Base Image URI Give the url of your application for example
    http://Test.Test.com:8000/OA_MEDIA/
    And then
    Image File Directory give this as per your application setup
    /u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
    Thanks & Regards
    Srikkanth.M

  • Need help in using replace function with special characters

    I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.
    The data looks like this:
    CREEK&#39;S LANE
    ie for a street named CREEK'S LANE.
    I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE
    When I try the query below I get prompted for substitution variable value.
    I don't seem to be able to find the right syntax to make this query work.
    SELECT REPLACE (street_name, '&#39;', '''')
    FROM
    streets WHERE street_id = 1
    Does anybody know how to do this?
    Any help would be much appreciated.
    Thanks.
    George

    george91 wrote:
    I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.
    The data looks like this:
    CREEK'S LANE
    ie for a street named CREEK'S LANE.
    I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE
    When I try the query below I get prompted for substitution variable value.
    I don't seem to be able to find the right syntax to make this query work.
    SELECT REPLACE (street_name, ''', '''')
    FROM
    streets WHERE street_id = 1
    Does anybody know how to do this?
    Any help would be much appreciated.
    Thanks.
    GeorgeHa! The codes you specified rendered in the HTML, but showed properly when I listed your original posting above. I didn't understand what you meant initially because the 5-character string represenation got rendered as the quote that you said you weren't able to get - a display problem.
    You're getting prompted for the substituon variable because of the ampersand; you appear to be doing this in SQL*PLUS. The first thing I would try is to SET DEFINE OFF when using the ampersands to see if that works. If That doesn't work check the docs to delmit the ampersand (I think its a backslash before it but can't remember offhand). Another, harder option might be to use the TRANSLATE function replacing the literal character instead of using REPLACE (though replacing a quote will be a little tricky). If you're on 10g also consider using the advanced quoting
    Good luck!
    Edited by: riedelme on May 22, 2009 12:45 PM

  • Time-dependent Vendor Master & Handling Special Characters

    Hi,
    I need to extract time-dependent Vendor Master.
    1. The data source for <b>0VENDOR</b> does not have fields to hold the valid date range.
    2. Does the Master data in R/3 for Vendors will hold the valid date range?
    3. The text for <b>0VENDOR</b> provides time-dependent, but how to map the <b>valid from</b> and <b>valid to</b> fields?
    Handling Special Characters:
    We are trying to extract data from Legacy system via DB Connect. The item text field consists of special characters. Of course in BW customization we can specify all the special characters to consider. But the special character we observed is 'square' symbol i.e. 'new line character' in Oracle. We are updating this to an ODS object. When looked at error log, observed that green light for the number of records transferred and updated, but finally when it load into ODS object and activates popping up the error message saying 'could not recognize special character'.
    Please help me getting the 2 issues resolved.
    Thanks in advance.
    Regards,
    Sudhakar.

    Hi Everyone,
    Thanks for inputs on Special characters issue...
    Finally resolved with below piece of code in the start routine:
    DATA: FLAG,
          OFF TYPE I,
          LEN TYPE I VALUE 1,
          ALLOWED_CHAR(95) VALUE
    '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_=+ ' &
    'abcdefghijklmnopqrstuvwxyz:;<>,.?/|\{}[]"'''.
    CONSTANTS: C_CHAR VALUE '-'.
      LOOP AT DATA_PACKAGE WHERE NOT /BIC/ZI_DESC IS INITIAL .
        DO.
          IF DATA_PACKAGE-/BIC/ZI_DESC CN  ALLOWED_CHAR.
            REPLACE SECTION OFFSET SY-FDPOS LENGTH LEN OF
                    DATA_PACKAGE-/BIC/ZI_DESC WITH C_CHAR.
            FLAG = SPACE.
          ELSE.
            FLAG = 'X'.
          ENDIF.
          IF FLAG = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        MODIFY DATA_PACKAGE.
      ENDLOOP.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    I have seen the link sent by 'Eugene Khusainov' today. Thought putting my piece of code that may help others...
    Regards,
    Sudhakar.

  • Special characters in XML structure when prepared using String

    Hi,
       I am preparing an XML structure using 'String'. I print the prepared XML structure in the server log. Issue is that I am seeing extra characters([[ and ]]) that I am not printing.
    Please let me know how to get rid of those.
    Code Excerpt
            String xmlHeader = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
            String lsb_xmlcon = xmlHeader;
            logger.info("ReqXMLString Process  1  --->" + lsb_xmlcon);
            lsb_xmlcon = lsb_xmlcon +("\n");
            logger.info("ReqXMLString Process  1.1  --->" + lsb_xmlcon);
            lsb_xmlcon = lsb_xmlcon +("<REQUEST>");
            lsb_xmlcon = lsb_xmlcon +("\n");
            logger.info("ReqXMLString Process  1.2  --->" + lsb_xmlcon);
    Log
    ReqXMLString Process  1  ---><?xml version="1.0" encoding="utf-8" ?>
    ReqXMLString Process  1.1  ---><?xml version="1.0" encoding="utf-8" ?>[[
    ReqXMLString Process  1.2  ---><?xml version="1.0" encoding="utf-8" ?>[[
    <REQUEST>
    Thanks,
    Message was edited by: 996913
    This issue is observed only while running the code in server, not from Jdev.
    When we append the additional tags without new line character, "\n", there are no extra characters being added. Also, in other case also. where we used "Marshaller" to prepare the XML, we have seen this issue.
    After we set the below property to false, we got rid of the extra characters.
                            jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false);
    Apparently the insertion of new line when the code runs on server(Weblogic 10.3.6.0) is creating the issue.
    Please let me know if anyone has come across a similar scenario.
    Thanks,

    I am building this XML in a servlet so ,right, DOM does process XML (even though a valid HTML file can be loaded into a DOM object) but if you build XML using DOM then write the XML out using PrintWriter and Transformer objects this will cause the XML to print out in your browser. If you view source on this XML you will see that the DOM object has translated all special characters to there &xxxx; equivalent. For a example: when the string (I know "cool" java) gets loaded into a attribute using the DOM object then wrote back out it looks like (I know &xxx;cool&xxx; java) if you view the source in your browser. This is what it should do, but the DOM object is not change the � to the "&xxxxx;". This servlet is acting as a gateway between a Java API and a windows asp. The asp will call the servlet expecting to get XML back and load it directly into a DOM object. When the windows DOM object gets the xml that I am returning in this servlet is throws a exception "invalid character" because the � was not translated to &xxxx; like the other characters were. According to the book HTML 4 in 24 hours (and other references) the eacute; or #233; are how you say "�" in HTML or XML. How do you say it?

Maybe you are looking for