How to change wildcard "_" (underscore) to some other character ?

Hello Tech Gurus,
I want to search for "_"( underscore) in a string using LIKE function.
The query is:
Select col1,col2
from table1
where col1 LIKE ('%ABC_%');
I want to search for string 'ABC_'. But, If I use '%ABC_%' the last underscore will be taken as wildcard.
How can I change wildcard underscore to any other character.
Or is there any other way/function to search for underscore in a string.
Thank you for your time.
Pramod

Hope This Solves yr Problem
select * from b;
A B
1 ABC_
2 ABC_D
3 ABCD
select b from b where b LIKE 'ABC\_%' ESCAPE '\';
B
ABC_
ABC_D
select b from b where b LIKE 'ABC\__%' ESCAPE '\'
B
ABC_D
Ashok

Similar Messages

  • TtyS4 and ttyS5 how do I activate using 'setserial' or some other way

    Is there a 'setserial' expert in the house?
    I've got a daughter board/card that has a bunch of I/O on it.  All devices work except the two serial ports.  I have 4 serial ports on the main board plus these two on the daughter board for a total of 6 serial ports.  The 4 ttyS* on the main board work but I can't get /dev/ttyS4 and /dev/ttyS5 to work.  (these serial ports on this exact hardware work on Solaris 10 x86)
    Here's what I've tried / found out so far:
    Using 8250.nr_uarts=6" parameter to boot options in /boot/grub/grub.conf so once booted there is /dev/ttyS4 and /dev/tty5 (in addition to the standard ones).
    Now I want to use "lspci -v" to find UART device info for ttyS4 and ttyS5 so I can use 'setserial' to specify port, interrupt and so on.  This is where I run into trouble.  I see from a block diagram from the manufacturer of the hardware that there are two Exar DUART chips: XR17D152 DUART for ttyS2 and ttyS3, and a XR16L2551 DUART for ttyS4 and ttyS5.  Problem is, when I do a 'lspci -v' only the  XR17D152 DUART for ttyS2 and ttyS3 shows up.  'lspci -v' does not report anything for the XR17D152 DUART, which is for ttyS4 and ttyS5.  I look at a block diagram of the daughter board where the XR17D152 DUART is and see it is NOT on the main bus but under a PLX  PCI9656  I/O accelerator chip.  I do see the info for the PCI9656 chip when I 'lspci -v' but not the DUART that's attached to it.  With nothing to lose,  I tried using the 'lspci' info from the PCI965 I/O accelerator as parameters to setserial for ttyS4 and ttyS5, but of course that didn't get results. Furthermore I see when I 'dmesg | grep tty' that that serials ttyS2 and ttyS3 use MMIO, which I'm not sure that 'setserial' can specify MMIO, only port IO.
    # lspci -v - output that shows the I/O acceler
    04:05.0 Serial controller: Exar Corp. XR17C/D152 Dual PCI UART (rev 02) (prog-if 02 [16550])
            Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
            Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
            Interrupt: pin A routed to IRQ 17
            Region 0: Memory at 80503000 (32-bit, non-prefetchable) [size=1K]
            Kernel driver in use: serial
    02:01.0 Bridge: PLX Technology, Inc. Device 9601 (rev ba)
            Subsystem: PLX Technology, Inc. Device 9656
            Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
            Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
            Interrupt: pin A routed to IRQ 7
            Region 0: Memory at 80160000 (32-bit, non-prefetchable) [size=512]
            Region 1: I/O ports at 3000 [size=256]
            Region 2: Memory at 80040000 (32-bit, non-prefetchable) [size=128K]
            Region 3: Memory at 80060000 (32-bit, non-prefetchable) [size=128K]
            Capabilities: [40] Power Management version 2
                    Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
                    Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
            Capabilities: [48] CompactPCI hot-swap <?>
            Capabilities: [4c] Vital Product Data
                    Unknown large resource type 35, will not decode more.
    #dmesg | grep tty - this output shows that ttyS2 and ttyS3 use MMIO, there is no info for the XR16L2551, because it's not detected.  I need to know how to tell the kernel about it.
    [    2.008167] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [    2.033915] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
    [    2.074052] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [    2.100632] 00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
    [    2.110283] 0000:04:05.0: ttyS2 at MMIO 0x80503000 (irq = 17) is a XR17D15X
    [    2.116775] 0000:04:05.0: ttyS3 at MMIO 0x80503200 (irq = 17) is a XR17D15X
    Questions:
    -  XR16L2551 DUART (serial ttyS4 and ttyS5) is not detected by 'lspci -v'  Can I find it some other way?  Does it have a known MMIO? A way to probe for it’s MMIO?
    - Can setserial specify MMIO for ttyS4 and ttyS5 once I find out what it is?
    - Since the XR16L2551 resides under a PLX Technology PCI9656  chip which IS found by 'lspci -v' can I use memory info from it to probe for the  XR16L2551, or can I even use the 'lspci' info from the PLX chip as parameters to 'setserial?
    - How can I get these serials, ttyS4 and ttyS5 to work?
    Last edited by Mogombus (2012-04-06 22:54:24)

    lizziepaige wrote:
    ... having nothing but problems ...
    See your other posts...
    https://discussions.apple.com/message/20666642#20666642
    https://discussions.apple.com/message/20666702#20666702

  • How to change default application associated with some mime types?

    When we install some new program, for example GIMP, I assume the newly installed program is added to some mime type database, and the /usr/share/applications/mimeinfo.cache file is automatically generated.
    Using my example, GIMP will be the default application for all its registered mime types, even application/pdf. I surely don't want this to happen, and I surely don't want to create all kinds of files that GIMP registered and right click on them and choose Properties and then change it in the Open with... tab. I want to systematically de-prioritize GIMP so that it will not override my previously assigned default applications.
    I wrote a script to modify the mimeinfo.cache file, and it seems to work great. However, after a reboot or upgrade or something I didn't notice, the default application of application/pdf is reconfigured to GIMP. I think the cache suffix of the file indicates that it is just a cache and may be changed by system unnoticed. So I am looking for a new way to change the default applications.
    As far as I know or guess from the phenomena, there should be some system utility that generates the mimeinfo.cache file, it seems to parse all the *.desktop files under /usr/share/applications and register them to certain mime types accordingly. The sequence of the *.desktop files get parsed seems to be related to the time the application is installed, and the newly installed applications seems to be parsed later and inserted in the front of the application list or be parsed earlier and appended to the application list. Is there some place I can change the sequence of the parsing? Or is there some place I can change the behavior of the system utility?
    I know that I can populate my ~/.local/share/applications/mimeapps.list to override the system wide defaults, however, I want a more elegant way to this.
    Any opinion on this is welcomed.
    Last edited by AugustePop (2010-05-14 05:47:15)

    Ah, right. Don't know what DE you are on, but in Gnome:  right-click a (e.g. pdf) file -> Preferences -> Open with.
    All Applications listed there will be available from the right click menu, the marked one will be used on double-click.
    errgrh...
    I surely don't want to create all kinds of files that GIMP registered and right click on them and choose Properties and then change it in the Open with... tab. I want to systematically de-prioritize GIMP so that it will not override my previously assigned default applications.
    I guess what I am trying to propose is this: "de-prioritize" GIMP in its .dekstop file for the types you dont want it to be associated with, and manually add it back in through "Open With" for the file types you want it to be an option. Not sure if this is solving anything for you though
    Last edited by hokasch (2010-05-14 10:28:57)

  • How to change to Icon View for some folders but and List View for the rest

    I've had a bear of a time with View options in my folders. I'd like some folders to be in Icon view and other to be in List view. For what ever reason if I change the view option of one folder it changes the view option of EVERY folder. What can I do to make this happen?

    I was about to ask the same. I'd like to use icon view normally, but list view for folders containing lots of text documents. It looks like the solution is using View > Show View Options, change the folder to the view you want, and then tick the box at the top fo the dialogue for "Always open in __ view".
    Message was edited by: Adrian Bolt
    Message was edited by: Adrian Bolt

  • How to change/update one page and all others at once?

    I'm quite new to Dreamweaver. I am trying to add some things to my sidebar and I would like it to appear on all of my other pages. I used a template for the index(homepage) then I just saved the page so I could create other pages for it to have the same logo and such on those pages. So how do I go about editing one page and all others at once?

    If you used DW Templates to create your child pages, open your .dwt file. 
    Make changes to the sidebar.
    Save and populate changes to child pages.
    Unfortunately, making changes to child pages will not populate to other child pages.  Only the master template.dwt in DW can populate changes across to child pages.
    Nancy O.

  • How to change default installation directory sapinst_instdir TO other drive

    Hi,
    I am installing ECC 6.0 and have enough space in my disk for data files.
    I have alloted 20GB in C: drive which also comprise of Operating System.sapinst_ instdir directory grows more than 10GB and due to lack of space installation fails. How can i change th default sapinst_instdir directiory from C drive to other drive. can i use any software to change partition? ( with OS windows server 2003)
    I have also encountered an error at import phase of first job and after changing *.TSK file the installation proceeds. will this cause any serious problem.
    regards,
    Anand

    Hello,
    I understand from ur post is u want to create the instalaltion logs on another directory instaed of C:\ drive....if so u can follow the procedure as describe below..
    create temp directory in any other drive called D:\ drive...
    go in to that temp drive.....
    and fire the executable from that temp directory.....if u r executable in e:\ drive then....
    d:\temp>e:\installer\insatall.exe
    the above command creates all logs one by one in temp dorectory of D:\ drive instaed of c:\ drive..
    Thanks

  • How can i mimic the look of some other movies?

    Hello, i enjoy using Color to try and mimim how some movies look. I know how to make things look like Minority Report but i was wondering about other movies that may have a cool look to them. Is there a site that may have a lot of them or do any of you know any ideas off the bat? Thanks!

    Expectations.
    The lines are definitely blurred now, even more so than in the past ten years. People who do not do this on a day in day out basis cannot know what is possible, impossible, practical or somewhere in between. A creative producer brought me some 16mm film (a little more than 10 years ago) and stated that the look he was going for was reminiscent of Degas' "Boater's Party", Oil on canvas, 1880.
    "Sure", I said, I'll just slap on the "Degas" filter -- which is not the "DeGauss" button, by the way.
    ... I don't think I'll finish this anecdote, to protect the guilty.
    Photoshop types are used to layering up these kinds of treatments and some day we might be able to, too. (And finish the job within the same fiscal year!)
    jPo

  • How to change loacalization of time capsule and other wifi hardware

    I have several apple machines like, time capsule and airport extreme from different countries around the world. In a globalized world I move every 3-4 years to a new country/region. In the wifi setup of the time capsule and the airport extreme you'll only find 5 or six countries (china, Korea, Japan, chile...) but nothing about Morocco or any european country. So when you try to set "restricted access" between 1 to 5 p.m., your regional setting is China, but you live some where in Europe, there is a time difference of several hours you have to take into consideration. That is a bad joke.
    There is no way of choosing a different location or setting the time as far as I know inside the setup.
    Any ideas, before I sell all my Apple stuff and buy Samsung or Fujitsu?

    Hi, you must go to Airport Utility, and in menù Disk you can change the name.
    Sergio

  • How to change language and get app in other country app store?

    Hi there. I am struggling with two problems with the app store:
    1. My billing address is in the Netherlands and I live now with my spanish speaking family in Colombia. If we enter the app store everything is in Dutch, what they don't understand. Can I change the store or the language without changing my billing address? Or do I need to get a credit card from Colombia to have the spanish language?
    2. I found a free app that is only available in de US app store. If I want to download the app, clicking on a button on the website, app store tells me to change app store. If I click on the button that says "change store", the next message that appears says that it is unable to connect to that store. I can connect to the Dutch store, but not the US store. How can I get this app that is only available in the US store?
    Thank you very much for helping me out on this problems.

    The issue is that your credit or debit card credentials must be associated with the same country where you reside.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article

  • JAXB: How to have my generated classes subclass some other outside class ?

    With my XJS and DTD, JAXB generates the following:
    public class FraisMessage
        extends MarshallableRootElement
        implements RootElement
    { etc...I would like it to generate this instead:
    public class FraisMessage extends MyOtherClass
        extends MarshallableRootElement
        implements RootElement
    { etc...MyOtherClass is another class outside the scope of JAXB
    How do I do this ? What do I have to put in my XJS to get this ?

    You cannot do that. TheJAVA language does not allow a class to "extend" more than one upper class.
    Typically, the solution is to modify your architecture a little bit. Just use the "has a" relationship instead of "is a". That means something like that:public class MyFraisMessage
        extends MyOtherClass
        private FraisMessage message;
      etc...You write an extension "MyFraisMessage" of your upper class "MyOtherClass", which has the JAXB generated object as an attribute. This structure is often useful, when you think you would need multiple inheritance.

  • How to change the Forms and Reports's NLS_LANG character set on OAS

    Hi,
    I'm having problems with the OAS10g's actual character set, when displaying a report made with Reports Builder 10g who has the letter "ñ" it displays "ñ " with a blank space at the final so i need to change this character set for one that suits this requirement.
    which file or files should i change ??
    could this change affect something else, for example another product in my OAS ??
    Regards
    Carlos

    I have this Forms and Reports Application in Brazilian Potuguese. What I do at new installations is:
    1. Open this file: <MiddlewareOracleHome>/forms/server/default.env and add the NLS parameters below the FORMS_PATH definition:
    FORMS_PATH=D:\Oracle\home207middle\forms;D:\MYENV\Exe;D:\MYENV\Imagens
    NLS_LANG=BRAZILIAN PORTUGUESE_BRAZIL.WE8MSWIN1252
    NLS_NUMERIC_CHARACTERS=,.2. Open this file: <MiddlewareOracleHome>/reports/conf/<your_report_server_name>.conf and create an "environment" section with the NLS variables:
       <environment id="MYENV">
          <envVariable name="REPORTS_PATH" value="D:\MYENV\Exe;D:\MYENV\Imagens"/>
          <envVariable name="NLS_LANG" value="BRAZILIAN PORTUGUESE_BRAZIL.WE8MSWIN1252"/>
          <envVariable name="NLS_DATE_FORMAT" value="DD/MM/YYYY"/>
          <envVariable name="NLS_NUMERIC_CHARACTERS" value=",."/>
       </environment>For this one to work, the application must set RP2RROREPORTSENV=MYENV before launching the report.

  • How to insert this date colum into some other table

    Hi all,
    I have to write a procedure to select the data from one table & insert date column data into another table,the data is in different date formats,but in the second table date column format should be (mm/dd/yyyy) .
    example:
    if the date in first table is 1992 it should be modify to "01-01-1992" & insert into the second table.But the values should be different(below are the different types).
    RELEASE_DATE
    1992
    1962
    July 1987
    Aug 1968
    10/30/06
    6/1/2005
    2004
    7.25.1951
    12/12/2006
    12/1/2005
    1992
    2003
    2005
    1958
    2002
    11/11/03
    1/1/91
    50-21-2001
    10.28.1991
    Please any body can help.

    <FONT FACE="Arial" size=2 color="2D0000">
    Thanks..! for giving the data type..
    Here is an example..
    SQL> desc atestdate
    Name                                      Null?    Type
    CHARDATE                                           VARCHAR2(10)
    ACTDATE                                            DATE
    SQL> select * from atestdate;
    1992
    July 1987
    Aug 1968
    10/30/06
    6/1/2005
    2004
    7.25.1951
    12/12/2006
    12/1/2005
    1992
    2003
    2005
    1958
    2002
    11/11/03
    1/1/91
    50-21-2001
    10.28.1991
    18 rows selected.
    SQL> select <font color="#0000ff">char_trim_x</font>(chardate) from atestdate;
    1992
    July-1987
    Aug-1968
    10-30-06
    6-1-2005
    2004
    7-25-1951
    12-12-2006
    12-1-2005
    1992
    2003
    2005
    1958
    2002
    11-11-03
    1-1-91
    50-21-2001<font color="#8000ff">--? 50 can not be a month nor a date  do not give  junk values</font>
    10-28-1991
    18 rows selected.
    <font color="#0000ff">char_trim_x</font> This is a function which I have created with REPLACE function
    this brings to some extent of an orderly format..
    <font color="#008000">But you have not yet posted your work ..</font>
    -SK
    </FONT>

  • How to add relay here and missing some other components

    This is my diagram to make the simulation
    but before simulation, I am stuck at adding the relay and couple of other things
    any help please ?
    I have attached so far done file to check ....
    Attachments:
    Circuit Diagram.JPG ‏518 KB
    Main_draft 3.ms13 ‏551 KB

    Hi patrick, thanks a lot to engaze your valueable time in replying us
    Relay is 12 V, 1C/O Relay. 
    I have attached 3 files to  undestand things better.
    Also, how do I put the code in the micro controller here ?
    what i get is option to enter main.c program, but I have program written in assembly language, what to do with that ?
    sorry for asking the noob questions here
    Attachments:
    Relay.ms13 ‏107 KB
    Main_draft 3.ms13 ‏593 KB
    Waternew.zip ‏11 KB

  • How to pad a string with space or other character

    length 14 string '00000000000155' turn to length 25 string '00000000000155         ' ,use space to pad string trail.
    using following function:
    CONCATENATE '00000000000155' '         ' into lv_string
    but result is the lv_string ='00000000000155',the spaces were not added the string trail.
    how to achieve this purpose padding string.
    pls help me.
    thank you.

    Hi ,
    Not sure what exactly you require, But in my understanding you need to add one more spave after the doknr no. Please refer this code which could be more useful.
    data: lv_objkt like aeoi-OBJKT,
          lv_doknr like draw-doknr,
          lv_dokar like draw-dokar,
          lv_doktl like draw-doktl,
          lv_dokvr like draw-dokvr,
          lv_slen type i.
    lv_dokar = 'DRW'.
    lv_doknr = '00000000000155'.
    lv_doktl = '000'.
    lv_dokvr = '-'.
    CONCATENATE lv_dokar lv_doknr INTO lv_objkt.
    lv_slen = STRLEN( lv_objkt ).
    lv_slen = lv_slen + 1.
    lv_objkt+lv_slen(3) = lv_doktl.
    CONCATENATE lv_objkt lv_dokvr INTO lv_objkt.
    WRITE: lv_objkt.

  • How to change default port in 9.2?

    Hi,
    In 8.1, when I run config wizard, I may assign listening port. But I could not do so in 9.2. I tried to modify startscript.xml and tokenValue.properties under base_domain\init-info\, it did not work. Does anyone know how to change the default port 7001 to other port?
    Thanks

    <p>Login via the console, select environment, servers. Select your server, you should see the greyed out Listen Port attribute (you should be in the general tab). Click lock and edit on the top left hand corner of the console and edit your listen port.</p>
    <p>The config.xml does not explicitly define stanzas for some default values (Same as earlier releases), I personally don'tlike this. If you change the default value it should reappear in it.</p>
    <p>
    Hussein Badakhchani</br>
    </p>

Maybe you are looking for

  • Answers PDF Export

    I create answers and all of them work fine. But: When I create an PDF the defined Subtotals are not displayed. Can somebody show me the to see all Totals und Subtotals? Regards; Stefan Hess

  • Amounts in PCA std report

    Hi, It is client's reqt to post invoices up to 5 decimal places.  The amounts posted in FI shows correctly up to 5 decimal places e.g. 1,008.12000.  But when checked against std PCA report S_ALR_87013340 , the actual line item amount is 1,008,120.00.

  • Just attempted to download the lastest ITunes update and received a Run Time error R6034

    Having a update issue! Most recent Itunes update would not load properly. Received the following ERRORS: C/RUN ERROR R6034 ERROR 7 WINDOWS ERROR 1114 MICROSOFT VISUAL C++ Now what? Any help out there? Thanks, vinylguru

  • Help on upgrading this code to Java 5

    Hi guys, I was trying to upgrading the following code to comply with Java 5 using generics, but I failed. Hope somebody here can help me out of this. This is the original code: import java.util.*; public class TestJava5{     public static void main(S

  • Help with helloworld example

    Hi, I'm new to web services. I downloaded and tried the helloworld program. it worked fine. To figure out how everything works, i copied all the files from the tutorial, deleted which I thought was not necessary and tried to compile and deploy the se