LIKE operator- change symbol for [all characters]

I have an input parameter which contains symbols "*" (star symbol), example:
i_search_par := 'country * street';
I gonna do query:
select * from SearchTable
where col1 like i_search_par;
I want that the "*" would act the same way as "%"-symbol in LIKE operator.
So i want that query would return such results:
'country 1 street'
'country 200 street'
and so on.
What is the better way to achieve this, that "*" is going to be interpreted as a "any number of any symbols"?
Maybe i can say something like:
SET SESSION ANYCHAR SYMBOL = "*".
And after doing that Oracle understands in LIKE operators that star-symbol is like i want?
Or should i really do string replacement by replacing ""%" to "*" in "i_search_par" and in other 30 such varaibles?

Hi,
Sorry, I don't think there's any way to tell LIKE to use different wildcards.
CharlesRoos wrote:
I have ca 30 input parameters:
i_search_par1 := 'country * street';
i_search_par2 := 'country * street';
i_search_par30 := 'country * street';Wouldn't it be just as easy to say:
i_search_par1 := 'country % street';
i_search_par2 := 'country % street';
i_search_par30 := 'country % street';?
>
And i will use them all like this:
select * from T
where Col1 like i_search_par1
and Col2 like i_search_par2
and
Col30 like i_search_par30You could write a very simple user-defined function. It would be slower, but the query would be a tiny bit simpler:
select * from T
where my_like (Col1, i_search_par1) = 1
and   my_like (Col2, i_search_par2) = 1
and   my_like (Col30, i_search_par30) = 1
Then you suggest that i sgould do string replacement 30 times for each parameter?Do you mean 1 time for each parameter, or 30 times altogether? Yes.
Isn't there better solution?
Maybe database has instruction that changes interpetation of symbol "*" into "%".It would be handy, but I don't think such a thing exists.

Similar Messages

  • It concerns adobe export pdf program. When we open  this program, it appears on the right of the screen." recognize the text in english"but. we would like to change it for french language. Because when we export the document under word program , it uses

    It concerns adobe export pdf program. When we open  this program, it appearsq on the right of the screen." recognize the text in english"but. we would like to change it for french language. Because when we export the document under word program , it uses english dictonnary to correct the text. thanks for your answer..

    [topic moved from Developers to Acrobat.com forum]

  • Attr changes runs for  all Infoobject in a process chain

    Hi,
    I have a process chain for the master data ( ATTR, TEXT and HIER),I want a Hierarchy/attribute change run like a last process in my chain and actives all the InfoObject and Hierarchy.
    How can I carry out the structural changes for all InfoObject in a process chain?
    Thanks!

    yes but it requests me a variant. then a layout "execute infopackage", then the attr change doesn´t have Object.
    I don´t know what I do?
    This process actives all my ATTR and HIER in my chain???
    Message was edited by: Victoria León

  • How to change settings for all users?

    Hi All,
    In cPro we have User Settings button. On clicking that we get a Tabstrip where you will find "User" tab.
    my question is: How can we change the default settings for all users e.g setting the checkbox "Scheduling only manually" to true ?
    Best Regards,
    Arti.

    Hi Arti,
    In cProjects the authorizations can be managed either by authorization profile administration by system administrator for General authorizations or by Project specific authorizations for individual cProjects elements by Project owner.
    Try the first one and I hope you will get the solution.
    Regards,
    Nishit Jani
    Award points only if you find the information useful.

  • How to change preferences for all users in a Citrix enviroment

    Hello.
    I need change some preference settings for all users in my Citrix enviroment.
    I know change the preference settings for a user, of course, but a have 160 users and a need to change some settings configuration one time on the server for all users.
    The preferents I need change are: 'disable javascript' and 'don't show pdf in IE'
    Thanks.

    Hi Arti,
    In cProjects the authorizations can be managed either by authorization profile administration by system administrator for General authorizations or by Project specific authorizations for individual cProjects elements by Project owner.
    Try the first one and I hope you will get the solution.
    Regards,
    Nishit Jani
    Award points only if you find the information useful.

  • Unable to load embedded PDF - must change settings for all users

    Hello.  We recently updated to Adobe Reader X on our three terminal servers.  Since the update we have found that a lot of our users are having an issue loading PDF's that are embedded in web sites.
    They access different websites that have such features and the PDF must be displayed in the browswer for it to load correctly.  Anyways, I have properly found what settings to adjust in Adobe Reader, my issue is that I need these settings adjusted for all 50 something employees and I really don't want to log into each user account and change the settings.
    The settings that must be adjusted are as follows:
    Edit > Preferences > General > Uncheck Enable Protected Mode at Startup
    Edit > Preferences > Internet > Uncheck Display in Read Mode by Default
    Edit > Preferences > Internet > Uncheck Allow fast web view
    Edit > Preferences > Internet > Uncheck Allow speculative downloading in the background
    I have found the registry files for the Protected Mode startup and Display in Read Mode, but am unable to find the other two registry settings.  Does anyone have any idea where those might be?  Or if you have a better suggestion on how to deploy Adobe with these settings already configured?  I have looked in the Customization Tool but was unable to find all the settings there as well.  Thanks!

    Acrobat is not permitted to run as a server process.
    Licenses are assigned to individual users, each of whom must have their own serialized copy.

  • Howto change color for all elements

    I want to update the formatting for some existing Keynote presentations. Applying a new Theme does most of the work, but there are some things that are not updated to the new theme. For example: background color of certain text boxes -- and the color of actual bullets for bullet points.
    In the case of these presentations:
    - the background color of the textboxes is blue and I want them all to be transparent
    - the color of the bullets is blue and I want them all to be the default color/picture of the particular theme
    I realize this is because Keynote is "respecting" textbox formatting changes I have made in the original, but it would be nice if I could over-ride this "respect" somehow. It is easy to select all the text of a Keynote presentation and apply various ways to all the text. Is there a trick for selecting all textboxes (and changing the background color of them) -- or of specifying something to the effect of, "apply the following format to all the bullets in a presentation?

    Ok, in that file, you'll find a set of parameters that looks like this.
    sfa:r="1" sfa:g="0" sfa:b="0" sfa:a=".5"
    Those stand for the red, green, and blue of a color and the last one is the opacity. This particular combination would create a red object with 50 percent opacity. Still looking for which one of these controls the background of a text box.
    You know, it looks like if you go through the file searching for sf:fill and deleting that section, then that removes the fill. Once you find the right section, one find and replace would do it for you. It's one of those things that makes me wish I was handy enough with Automator and/or Applescript.
    Message was edited by: Kyn Drake

  • Force textInput to wait for all characters?

    I have a problem with getting text from a text box before the text entry is complete.
    Here's the issue: I am using a speech-recognition program to convert spoken words to typed text; thus, when I speak a word, it is typed (like via keyboard) into a TextInput field. 
    I would like the program to "check" the text in this TextInput when a spacebar keyboard down event is triggered.  So I've tried adding a keyboard event listener like so:
    typedInput.addEventListener(KeyboardEvent.KEY_DOWN, checkKey) // turn on keyboard listener
    private function checkKey(keypress:KeyboardEvent):void { // handle keypress triggers
    if (keypress.keyCode == 32) {
         // if spacebar is pressed, check the text of the input box to see if it is correct
         if (typedInput.text == nextWord)  trace("Successful word match! Typed input: "+typedInput.text);
         else
         // if incorrect, highlight the word in orange; if already orange, highlight in red and call the word audio
         trace ("Incorrect spoken word. Typed input: "+typedInput.text);
    typedInput.text = "";
    So basically it should check the TextInput and compare against a string, once spacebar is pressed.
    The problem is... the results are sporadic; sometimes it triggers the spacebar event before being able to get any text in the input; sometimes it might grab the first letter or two.
    Another problem might be that this event listener is listening to EVERY keystroke when all I really care about is listening for the spacebar.
    I've tried adding the keyboard event listener to the state instead of the text input, but it doesn't seem to make any difference.
    Any ideas on how to get this to work? I'm going to see if I can use my third-party program (GlovePIE) to map spacebar to enter key instead, and then be able to use the "enter" event for the textinput, but otherwise I'm at a loss... either it's taking too long because it has to check every keystroke, or the keystrokes are coming so fast that the event handler is finished before the text input element can even register that it has been input.
    Would it be better to use a "change" event on the text handler? If so, how would I go about checking each new character typed into the input?

    Hmm, I got it to work okay by using a timer to force a wait, like so:
    private function checkKey(keypress:KeyboardEvent):void {
    if (keypress.keyCode == 32) {
    // if spacebar is pressed, check the text of the input box to see if it is correct
    var timer:Timer = new Timer(10,1);
    timer.addEventListener(TimerEvent.TIMER_COMPLETE, timeupHandler);
    timer.start();
    function timeupHandler(event:TimerEvent):void {
         if (typedInput.text == nextWord) {
         // if correct, change color of the word and increment to the next word on the page
         trace("Successful spoken word match! Typed input: "+typedInput.text);
         else {
         // if incorrect, highlight the word in orange; if already orange, highlight in red and call the word audio
         trace ("Incorrect spoken word. Typed input: "+typedInput.text);
         typedInput.text = "";
    However, this really seems like a hack that I'd like to avoid -- for one thing, I don't want to slow down the system any more than necessary (ie. if it only takes 3 milliseconds to get all the letters in place, why wait 10 every time?), and for another it seems like it would be machine-dependent (processor, etc.)  So this is a hack, not a real solution (unless there is no better solution)
    I will try converting spacebar to enter and see how that works with an "enter" listener on the input.  (But even this will create a small amount of lag)

  • Change KerningMethod for all TextFrame?

    Does anyone know how to change the KerningMethod value for a TextFrame in an Illustrator file?
    I tried every possible way I can find without success.
    I thought the code below would work but it didn't
    //After getting the textFrame object...
    Illustrator.CharacterStyle charStyle = textFrame.TextRange.CharacterStyles[1];
    Illustrator.CharacterAttributes charAttr = charStyle.CharacterAttributes;
    charAttr.KerningMethod = Illustrator.AiAutoKernType.aiOptical;
    Note that I can change every other attributes like Size, Font, Text, ... but not KerningMethod. The file is just a simple file with one text frame.
    Your help is appreciated.
    T.

    Given an open document containing a frame of text…
    var doc = app.activeDocument;
    var tF = doc.textFrames[0];
    tF.textRange.characterAttributes.kerningMethod = AutoKernType.OPTICAL;

  • Where can I see change documents for all changes to WBS elements

    I have set up config via OPSA for both Basic Data and Status Management change documents to be allowed for nominated project profiles.  I have then created a new project with the required project profile and whilst I can see the history for status  management / user status.  I am unable to see changes for other field information.
    Is there a way to be able to see who changes the data like (wbs description, person responsible /applicant, profit centres etc)?
    I have checked table JCDS and that only appears to give me status management.
    Thanks
    Trish

    Try transaction CJCD or CN60
    Abraham

  • Script to change language for all  style lables in one click

    Hello,
    We are a dutch pre press company and often we get (English or French or German) books that are translated into Dutch. And often the copublisher has created documents with 80+ stylelables. It is quite a pain to change all stylelables one by one into Dutch (for dictionary and correct hypenation). Quark has an option to save a document as multi language or singe language. With the last option the programme asks for the desired language and all stylelables are immediately changed to (in my case) Dutch. That works great. Maybe someone out there has a script to achive the same in Indesign (5 or 5.5?) Thanks in advance!
    kind regards
    Peter

    Hi Selva,
    I have been trying for a long time to change the paragraph composer of all paragraph styles in a document, say from Adobe Paragraph composer to Adobe single-line composer. Nothing goes. Do you know how I can do that? I work with the french version and the composers are named: Compositeur de paragraphe Adobe and Compositeur ligne simple Adobe. The following works for a paragraph style if i refer explicitely to its name. But then, I don't gain much. So I want to find a way to change ALL paragraph styles at once. Your help would be great.
    var myDoc = app.activeDocument;
    var myPstyle = myDoc.paragraphStyles.item("Indents");
    myPstyle.composer = "Compositeur ligne simple Adobe";
    Thanks in advance.
    Diane

  • How to change service for all members

    Hello,
    We setup our cluster with member1 and member2 as follows.
    backup-count = 1 on cluster configuration.
    service-name = CACHE-TEST-A, which is stored in Member1
    the backup of CACHE-TEST-A is stored in Member2
    Now we change the service name CACHE-TEST-A to CACHE-TEST-B.
    The question under consideration is how to change CACHE-TEST-A to
    CACHE-TEST-B in both members.
    Test steps:
    1 Turn off the service, execute the following code:
    CacheFactory.getCluster (). Shutdown ();
    CacheFactory.getCluster (). Stop ();
    2 Modify the configuration file, the CACHE-TEST-A modified CACHE-TEST-B
    3 Restart the service, execute the following code:
    DefaultCacheServer cacheServer = new DefaultCacheServer (new DefaultConfigurableCacheFactory ());
    cacheServer.start ();
    Result:
    Service started, but the configuration file is not loaded,
    it seems that the system is still configured with CACHE-TEST-A.

    We are going to achieve as below.
    Requirements:
    In the existing cluster nodes without adding a new premise, deploy new business class package (based on CacheStore the jar), also updating some of the Cache service scheme of the configuration.
    Solution:
    We use the above coding part (using a custom Jmx and DefaultCacheServer to stop and start nodes) to achieve the requirement, but do not know whether any other better solution for this.

  • In a small media lab we have approximately 10 iPads on order. We'd like to purchase iMovie for all of the iPads. Best way to do this?

    Do we need to specifically create 10 separate iTunes user Apple IDs?
    Can we use 1 ID and share the app for multiple users/ iPads?
    Or do we use 1 ID and buy the app separately on all 10 iPads?
    I want to do this correctly and as recommended.  Thank you!

    If you're an educational institution and are in the US, Apple's Volume Purchase Plan would be your best option. See:
    http://www.apple.com/education/volume-purchase-program/
    Regards.

  • OBIEE:Need formula for all characters to the right of the right-most space

    Hi:
    I need to extract the right-most word from a field that could have 2-3 spaces. Example: "Administration Main Boston" = "Boston"
    Thanks-
    Charlie Epes
    Buffalo, NY

    Okay, this took awhile, but it was a nice challenge. The following will work for CHAR fields that have up to 3 spaces. It will extract and display the last word that follows the last space. Again, this was designed to work for words with no spaces, one space, two spaces, and 3 spaces. Here is the code:
    RIGHT(RIGHT(RIGHT(TABLENAME.COLUMN_NAME,LENGTH(TABLENAME.COLUMN_NAME) - POSITION(' ' IN TABLENAME.COLUMN_NAME)),LENGTH(RIGHT(TABLENAME.COLUMN_NAME,LENGTH(TABLENAME.COLUMN_NAME) - POSITION(' ' IN TABLENAME.COLUMN_NAME)))-POSITION(' ' IN RIGHT(TABLENAME.COLUMN_NAME,LENGTH(TABLENAME.COLUMN_NAME) - POSITION(' ' IN TABLENAME.COLUMN_NAME)))),LENGTH(RIGHT(RIGHT(TABLENAME.COLUMN_NAME,LENGTH(TABLENAME.COLUMN_NAME) - POSITION(' ' IN TABLENAME.COLUMN_NAME)),LENGTH(RIGHT(TABLENAME.COLUMN_NAME,LENGTH(TABLENAME.COLUMN_NAME) - POSITION(' ' IN TABLENAME.COLUMN_NAME)))-POSITION(' ' IN RIGHT(TABLENAME.COLUMN_NAME,LENGTH(TABLENAME.COLUMN_NAME) - POSITION(' ' IN TABLENAME.COLUMN_NAME)))))-POSITION(' ' IN RIGHT(RIGHT(TABLENAME.COLUMN_NAME,LENGTH(TABLENAME.COLUMN_NAME) - POSITION(' ' IN TABLENAME.COLUMN_NAME)),LENGTH(RIGHT(TABLENAME.COLUMN_NAME,LENGTH(TABLENAME.COLUMN_NAME) - POSITION(' ' IN TABLENAME.COLUMN_NAME)))-POSITION(' ' IN RIGHT(TABLENAME.COLUMN_NAME,LENGTH(TABLENAME.COLUMN_NAME) - POSITION(' ' IN TABLENAME.COLUMN_NAME))))))
    To use this, do this:
    1) Paste the code in Notepad.
    2) Do a "Replace All" and substitue TABLENAME.COLUMN_NAME for "- Employee"."CRM Employee Branch"
    3) Copy the transformed code and paste it in the fx of a dummy column in your report.

  • Change View for All Playlists

    I now have all my playlists in the "List" view. How do I switch them all at once to the 'Grid' view?

    There's no FAST way I know of, which is what I think you mean.
    Only the painful SLOW way of one-by-one.
    You could make a new playlist from the main library after you've set the columns up as you like.
    Go to an existing playlist that doesn't have the columns you want, and select all.
    RIght-click > Add to Playlist and send them to the new playlist.
    That's still one-by-one and only works with static playlists, not smart ones.

Maybe you are looking for

  • Someone has been using my account to download apps how do i claim the money back?

    someone has been using my account to download apps how do i claim the money back?

  • Rebate PO

    Hi, We know that the rebate occurs when the purchase value meet the base/scale amount, when I create a PO with quantities/value more than the base value the rebate is triggered if not the I dont see the rebate condition in PO. Acutually they need to

  • Outbound 856 - Error generating an IDOC

    Hi Everyone,   We have a scenario where we need to generate an IDOC for Advance shipping notification for 856 outbound, the basic settings required to do the same are done using the message type DESADV and IDOC type DESADV01. However the IDOC is not

  • Missing icons for Adobe CC programs

    All of my adobe icons are missing (show as a white icon, or a white icon with the icon its supposed to be in the middle of it). A few days ago they were all showing up. How can I fix this? I've tried assigning the correct programs via associating the

  • AME Quicktime H.264 Field Type Bug ?

    No matter you choose Lower or Upper Field First in the Field Type of AME Export Settings, the rendered video is Progressive. Could anyone confirm this is a bug please ? Regards