How to Search strings with and without quotes

Hello,
I need to search a string with quote and without quote the same way
Ex: Wendy's
If user enters wendys without ' also need to return all the Wendy's..!
I appreciate any help...!
Thanks
RG

Hi,
RG wrote:
Hello,
I need to search a string with quote and without quote the same way
Ex: Wendy's
If user enters wendys without ' also need to return all the Wendy's..!
I appreciate any help...!So you want to ignore single-quotes, is that it?
Here's one way:
INSTR ( REPLACE (big_string,       '''')
      , REPLACE (substring_sought, '''')
      )  > 0 
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
See the forum FAQ {message:id=9360002}

Similar Messages

  • How to store string with "?" without binding parameters

    I would like to store string which contains following characters 'bla bla bla "?" bla bla'. When I set this string into some object and commit UOW, than TopLink generates UPDATE command and I receive SQLException "Number of input values does not match number of question marks". It seems that TopLink tries to store this object via PreparedStatement.
    How can I say to TopLink: "Don't use PrepareStatement"?
    Thank you for any help.
    Jan Kostrhun
    TopLink version: 9.3.0.6
    JDBC: Informix JDBC 2.21.JC5
    // modifications made to DatabaseLogin in preLogin event
    DatabaseLogin dl = srv.getLogin();
    dl.useBatchWriting();
    dl.useJDBCBatchWriting();
    dl.useNativeSQL();

    Hi King,
    the problem is, that I am storing string which contains a part of Java code. And the Java code contains question mark surrounded by quotation marks.
    Thank you for your answer
    Jan
    08:45:15,997 INFO [1571] toplink UnitOfWork(22544730)--begin unit of work commit
    08:45:16,004 INFO [1571] toplink ClientSession(5676128)--Connection(3972145)--begin transaction
    ... some lines
    08:45:16,047 INFO [1571] toplink UnitOfWork(22544730)--Connection(3972145)--UPDATE char_moc_body SET cast_retezce = ' ERROR_EX (ex, "Error while running algoritmus!");
    result = "aaaaaaaaa";
    } else {
    result = "?";
    * Implementace metody udalosti CommandEvent.
    * @param event data udalosti.
    public void process ', obj_verze = 11 WHERE ((obj_id = 901699) AND (obj_verze = 10))
    08:45:16,117 ERROR [1571] toplink UnitOfWork(22544730)--EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3.4 (Build 432)): oracle.toplink.exceptions.DatabaseException
    EXCEPTION DESCRIPTION: java.sql.SQLException: Number of input values does not match number of question marks
    INTERNAL EXCEPTION: java.sql.SQLException: Number of input values does not match number of question marks
    ERROR CODE: -79749LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3.4 (Build 432)): oracle.toplink.exceptions.DatabaseException
    EXCEPTION DESCRIPTION: java.sql.SQLException: Number of input values does not match number of question marks
    INTERNAL EXCEPTION: java.sql.SQLException: Number of input values does not match number of question marks
    ERROR CODE: -79749
         at oracle.toplink.exceptions.DatabaseException.sqlException(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.executeCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeNoSelectCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.updateObject(Unknown Source)
         at oracle.toplink.internal.queryframework.StatementQueryMechanism.updateObject(Unknown Source)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.updateObjectForWrite(Unknown Source)
         at oracle.toplink.queryframework.WriteObjectQuery.executeCommit(Unknown Source)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWrite(Unknown Source)
         at oracle.toplink.queryframework.WriteObjectQuery.execute(Unknown Source)
         at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(Unknown Source)
         at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
         at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjects(Unknown Source)
         at oracle.toplink.publicinterface.Session.writeAllObjects(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commit(Unknown Source)
    ... more rows
    INTERNAL EXCEPTION STACK:
    java.sql.SQLException: Number of input values does not match number of question marks
         at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:348)
         at com.informix.jdbc.IfxSqli.sendExecute(IfxSqli.java:1256)
         at com.informix.jdbc.IfxSqli.sendCommand(IfxSqli.java:814)
         at com.informix.jdbc.IfxSqli.executeCommand(IfxSqli.java:699)
         at com.informix.jdbc.IfxResultSet.executeUpdate(IfxResultSet.java:316)
         at com.informix.jdbc.IfxStatement.executeUpdateImpl(IfxStatement.java:846)
         at com.informix.jdbc.IfxPreparedStatement.executeUpdate(IfxPreparedStatement.java:269)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.executeCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeNoSelectCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.updateObject(Unknown Source)
         at oracle.toplink.internal.queryframework.StatementQueryMechanism.updateObject(Unknown Source)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.updateObjectForWrite(Unknown Source)
         at oracle.toplink.queryframework.WriteObjectQuery.executeCommit(Unknown Source)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWrite(Unknown Source)
         at oracle.toplink.queryframework.WriteObjectQuery.execute(Unknown Source)
         at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(Unknown Source)
         at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
         at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjects(Unknown Source)
         at oracle.toplink.publicinterface.Session.writeAllObjects(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commit(Unknown Source)
    ... more rows
    08:45:16,121 INFO [1571] toplink ClientSession(5676128)--Connection(3972145)--rollback transaction
    08:45:16,146 INFO [1571] toplink UnitOfWork(22544730)--release unit of work

  • I want to communicate a RS485/2-wire device through COM1. I tried Instrument I/O Assistance to write to COM1(hex string with or without end bye:0D0A), something happened on the bus, but is not defirrential signal, and device didn't recognised them.

    I am new to LabView, so please bear with me...
    I tried to communicate with an RS485/2-wire device through COM1.  I used Instrument I/O Assistant (and Advanced/Basic Serial Write and Read examples) to write command (HEX string) to COM1,  
    tried writing HEX strings with and withour end bye (is 0D0A the correct end signal for HEX string?).  Both didn't get device's responce.  Looks like the device didn't recognize the command.
    I monitored the transmitted signals on the bus, they were not differential as supposed to be.....
    What is the possible reason to cause this? Please help...
    The hardware connection is OK, because I am able to communicate with the device through COM1 (with the same command) using different software application.

    How are you sending the hex? Is your string control set for hex display or normal? If it's set for normal, then if you send something like 'AD', then you aer sending the ASCII characters 'A' and 'D' and that's not the same thing. I don't believe the I/O assistant can send hex but you can modify the basic serial write and read to do so. Just right click on the string control and select 'Hex Display'. You can also enter the data in a numeric control (set for dex display) and use a type cast or an array of U8's and use the Byte Array to String function. Hex data usually doesn't use any kind of termination characters such as CR/LF.
    If communication is working with another app, then as you said, the hardware is okay and it's not a problem with differential signaling.

  • Bex Report with and without BIA . . Fails with a dump EXPORT_TOO_MUCH_DATA

    Hi Folks,
    We have a report thats has been running well in production for more about 18 months. This month it did not complete execution.
    We did implement BIA couple of 4 months back and the run times have drastically reduced after the BIA. Now this query execution results in a Dump with and without BIA.  FYI the underlying cube has 195,876,020 records only.
    Name of Runtime error: EXPORT_TOO_MUCH_DATA
    Short text:     Too much data for export.
    What happened?     Runtime error
        The current ABAP program "CL_RSR_CACHE_DO_SPID==========CP" had to be
         terminated because one     of the statements could not be executed at runtime.
    Error analysis: The dataset stored under an EXPORT/IMPORT ID is restricted
    by
    1. The maximum possible size of 2 GB
    2. The length of a data record and the capacity of the sequence counter. This error occurs only if the capacity of the
    sequence counter does not go beyond 255.
    Source Code Extract:
        1 METHOD if_rsr_cache_data_object~get_xstring.
        2
        3   FIELD-SYMBOLS:
        4     <l_xstring>            TYPE xstring,
        5     <l_sp>                 TYPE ANY,
        6     <l_spinfo>             TYPE ANY.
        7
        8   CREATE DATA r_r_xstring.
        9   ASSIGN r_r_xstring->* TO <l_xstring>.
       10   ASSIGN n_s_spid-r_sp->*     TO <l_sp>.
       11   ASSIGN n_s_spid-r_spinfo->* TO <l_spinfo>.
       12
       13 *... Sp has to be the first component
    >>>>>   EXPORT sp = <l_sp> spinfo = <l_spinfo>
       15          TO DATA BUFFER <l_xstring> COMPRESSION ON.
       16
       17 ENDMETHOD.
    Referred to the below note 0001232573
    which says to have 'RSRCACHE_ITAB_COMPR'  parameter using report SAP_RSADMIN_MAINTAIN
    Note say the below (It might be a little tricky, to find an appropriate value for 'RSRCACHE_ITAB_COMPR' as it heavily depends on the query-specific data structures that are stored in the cache. The general recommendation would be to start with a value of about 5000. Test this with a query, that dumped previously. In case the dump persists reoccurs, reduce the value of the parameter significantly. Otherwise, if no dump occurs but you face noticeably longer runtimes, increase the parameter.)
    We are trying not able to get to the right parameter value. (changed it from 5000, 4000, 3000, & 1000) without much  help.  Did any of you had to change this parameter. How low or High can this parameter be changed?
    We would like to understand if changing any other parameters would help in RSADMIN table would help?
    Any thoughts from the experts would be appreciated
    Thanks,
    FHF

    Hi,
    Are you running the report for all the selections(all the data )?
    execute the report with data selection and check?
    Is the data in the Ic - compressed?
    Regards
    KP

  • VA01: Creation of SD order with several material codes,with and without VAT

    hi guys,
    could someone tell me how to set up the system to not be able to create an SD orders with a mix of VAT condition?
    We don't want a sales order with an combination with and without VAT.
    Pls advise. Thanks.

    could someone tell me how to set up the system to not be able to create an SD orders with a mix of VAT condition?
    We don't want a sales order with an combination with and without VAT.
    H i
    1.The Vat ( Tax ) is applicable on basis of Customer and Mareial Tax classification.
    2. So as far as material is concerned , group all VAT applicable material in One Division
    Say in FMCG Company
    Divisions are Soaps , Skin Care , Shampoo etc
    Create Sub Divsions say for Eg Soaps-------Soaps 1( Taxable) & Soaps 2 .( Non Taxable ) and acordingly for other divisions
    And then Create Sales Areas accordingly.
    All this will need Reorganisation of your Sales Area
    Regards
    Rohit

  • How to display string with XML content in 4.6?

    Hi,
    I`d like to know how to display string with XML content in it for 4.6.
    4.6 has not method parse_string.
    And example like this is not helpful:
      DATA: lo_mxml    TYPE REF TO cl_xml_document.
      CREATE OBJECT lo_mxml.
      CALL METHOD lo_mxml->parse_string
        EXPORTING
          stream = gv_xml_string.
      CALL METHOD lo_mxml->display.
    Thank you.

    Hi,
    May be you can use fm SAP_CONVERT_TO_XML_FORMAT. But it have some issues with memory usage, the program consumed tons of memory during convert.

  • STO with and without delivery

    Hi All,
           sorry for troubling you all again. last question on STO.
    1) when STO is required to be with delivery only then only we use IMG > step up stock transport order> Assign Document Type, One-Step Procedure, Underdelivery Tolerance
    there is no need to assign document type in the step--> Assign Document Type, One-Step Procedure, Underdelivery Tolerance,  if it is without delivery in step --  ?  is it like this?
    i created a document type <b>zubd</b> by copying the std UB. and did the setting in the STO with the help of SD consultant.
    i assigned the new STO document type  ZUBD in step
    Assign Document Type, One-Step Procedure, Underdelivery Tolerance
    now when i am trying to assign document type UB in the step;
    Assign Document Type, One-Step Procedure, Underdelivery Tolerance
    <b>the system is giving me error message : an entry already exists with the same key</b>
    am i right if i make the interpetation for STO with and without delivery like this:
    1) for STO without delivery there is no need to do IMG in the step Set up stock transport order. we can use the std doc type UB or the one created by copying UB.
    2)  for STO with delivery we have to do the settigs in IMG for set uo stcok transport order
    thanks and regards
    Kavita

    Hi Kavita,
    You are Right,
    Assign Document Type, One-Step Procedure, under delivery Tolerance
    In this step, you define which document type is to be used for a certain combination of supplying plant and receiving plant.
    <b>There is no need to maintain IMG setting forStock Tranfer Order  Without SD delivery</b>. because main moto of assignment of Document type is to specify which delivery type is to be used.
    for this we allready maintain IMG setting before this srep >Assign Document Type, One-Step Procedure, Underdelivery Tolerance at
    <b>Assign Delivery Type and Checking Rule</b>:
    In this step, you specify whether an SD delivery is to be created in the case of a PO with a certain combination of supplying plant and document type. You can also specify which delivery type is to be used.
    The delivery determines how a delivery is handled.  I.e. stock transfers without a billing document or for stock transfers with a billing document.
    Regards
    Sanjay l

  • How to search string in BSP Application?

    Hi,
    Report ‘RS_ABAP_SOURCE_SCAN’ is to search string in ABAP. How to search string in BSP Application?
    In standard BSP Application is calling another BSP application and this hard coded in application.
    Regards,
    ...Naddy

    Hello Naddy,
    7 Years later and it seems there is still no possible way to search a string in a BSP application.
    Using Report BSP_EXPORT_CLASSES (Uncheck list of packages, provide BSP application name) I was able to download the complete BSP application to my desktop computer; after that I used TotalCommander (free edition) to scan the files for the string. (Mode set to UTF8)
    Ugly workaround but it works.
    Regards

  • How do I register with iTunes without using a credit card it's not giving me a none option???

    How can I register with iTunes without using a credit card it's not giving me a none option!!

    Did you follow these instructions? You have to. Also, you have to use an email addresss that you have not used with Apple before, it has to be a new acciount.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • How to write strings with an underline on the TOP-OF-PAGE of ALV

    How to write strings with an underline on the TOP-OF-PAGE of ALV

    if u r using classes and methods it can be done
    but if u r using normal fms and then u have to use HTML_TOP_OF_PAGE but the drawback for this it cannot be printed when the report is printed .

  • How do I FTP with Tiger without a FTP program?

    How do I FTP with Tiger without a FTP program?
    I saw the tip on the web site a few days ago, but now I can't find it.
    Thanks ahead,
    -Line

    I was very disappointed to find that we were misled. I am not sure if the guy who wrote this simply didn't check before he wrote this or what.
    I wonder why Apple just took this off their site without any explanation to the people that were deceived. I spent quite a bit of time browsing discussions and contacting apple support to figure out that there was no truth to this "tip" of the week. How difficult would it have been to simply post a new tip, saying that we should not waste our time with this?
    http://web.mac.com/justinpe/iWeb/Justin%20Petersen/Blog/Blog_files/FTP.jpg
    Intell Based iMac   Mac OS X (10.4.10)  
    Intell Based iMac   Mac OS X (10.4.10)  

  • Is there an issue going on with the iPhones? And iPads? I cannot send text pics.  I can't get on Facebook, and I can't get on anything that uses Facebook ex Slotomania.  This has been going on for a few days!!!  It is happening with and without upgrades.

    Is there an issue going on with the iPhones? And iPads? I cannot send text pics.  I can't get on Facebook, and I can't get on anything that uses Facebook ex Slotomania.  This has been going on for a few days!!!  It is happening with and without upgrades.

    Contact facebook to address the facebook issues.

  • Camera wont capture when Tethering Canon T5i in Lightroom 4.4. Tried with and without card.

    I just unboxed a Canon T5i (700D). I've been shooting with a T2i for the past three years tethered to LR4 with no problem. Now with the T5i, i connect the camera, set up a new tether session and LR detects the camera in the pop up bar, but the sections for Shutter Speed, Aperture, and ISO are blank. The capture button is able to be clicked, but the camera does not respond. When the shutter on the camera is pressed, also no response. I have tried this with and without the SD card. I have used three usb cable and two different computers. I have checked for updates and my firmware is current. The camera is set to manual mode in the on position NOT the video position and I am tethering to a Windows 7 computer. Please help!

    You will need LR5 for that camera to be supported for direct tethered capture.  Or you can use the LR "Watched Folder" feature and use the EOS Utility or other tethering software packages.  Here is a list of some options - http://www.tethertools.com/plugging-in/software/

  • T450s screen size? (with and without bezel/border)

    Hello, May I ask the exact dimensions of the screen, with and without the bezel (in metric system)?Here is an image of the 4 coords I would need: http://ximg.fr/view-23376686df3969b67183003635c63a4f.htmlThank you very much

    the attached image is a t550 indeed but that's because it was the only decent image i could find on google, so I confirm I require these infos for the T450s.
    Thanks

  • TS3406 I have a connection in the top left hand corner and can access the internet with and without internet on my iphone 5c but I can't receive and create texts and calls, someone please help have tried everything!

    I have a connection in the top left hand corner and can access the internet with and without internet on my iphone 5c but I can't receive and create texts and calls, someone please help have tried everything!

    YOu will need to contact your cell phone provider to resolve those issue, those are carrier features.

Maybe you are looking for