Work with LIKE operator

Hello

I have a little confusion in the safeguard clause.

create the products table (product_name varchar2 (100));

Start

insert into products (product_name) values('A%_WQ123');

insert into products (product_name) values('A%BWQ123');

insert into products (product_name) values('AB_WQ123');

commit;

end;
/

Select * from products where product_name like '\%_WQ12% %' escape '-';

output:

product_name

----------------

A % _WQ123

A % BWQ123

can you please tell how it works, in the above statement the ESCAPE escape only % or the two and_ %

Thank you

Hopefully, this will clear your query!

1.

Select * from products where product_name as '% \%_WQ12%' escape '-';
OP: -.
A % _WQ123
A % BWQ123

Here, you are escaping only '%' no '_ '.   And '_' sets a single character ('B' and '_') before the expression 'WQ12% ' and after '%' (escaped).

2.

Select * from products where product_name as '% \%\_WQ12%' escape '-';

OP-
A % _WQ123

Here, you are escaping both '%' and '_ '. It will review so these two characters as part of the expression '% WQ12 '. So like this template, there is only one record.

Thank you!

Tags: Database

Similar Questions

  • My camera Olympus only works with Apple's Quick Time 7. Is it possible to make it work with my operating system from Windows XP?

    My camera Olympus only works with Apple's Quick Time 7.  Is it possible to make it work with my operating system from Windows XP?

    Apple QuickTime 7 works is because. MOV is the Apple
    QuickTime format.

    QuickTime. MOV files can cause problems with Windows Media Player.
    And... If you plan to try editing with Movie Maker... the files should
    be converted to the. WMV format.

    No guarantee, but the following decoder might allow Windows Media
    Reader to read your. MOV files. Only problem is... it is not freeware to retail.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    3ivx MPEG-4 5.0.4 decoder
    http://store.3ivx.com/3ivxStore/product_details.php?ID=11

    Convert the. MOV files to the. WMV format may be worth a try:

    There are many converters available on the net... some
    free... some detail.

    The following freeware converter is just one example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster download)
    (the file you want to download is: > FFSetup295.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the final screens)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag > FFSetup295.exe< out="" of="" the="">
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck

  • I bought Adobe Acrobat Pro for MAC (version 9) earlier and since then got a new computer. Version 9 no longer works with my operating system. Is there a work around to having to buy a full version of this product once again? Doesn't seem right, if it's th

    My analysis is contained in my question.

    Basically, I bought Adobe Acrobat 9 and now am unable to operate on my new computer.

    Do I have to buy a new version of Adobe Acrobat Pro? It seems that there should be an upgrade, rather than having to buy the product again?

    Thank you

    ~ j

    Hi jklebenov,

    As I mentioned before that Acrobat 9 is not compatible with your operating system Adobe Acrobat required configuration.

    Please use the application in a consistent environment to make it work.

    Kind regards
    Nicos

  • Windows 8 can work with multiple operating systems

    Can I use windows 8 with several OS like windows7 & windows xp etc.

    Hello Aslam Dasadia,

    If you are referring to double or triple boot, i.e., starting from Windows XP, Windows 7 and Windows 8 on the same PC and the drive, then the answer is Yes.

    Please keep in mind that Windows XP must be installed first. This is because Windows XP uses a different bootloader of Windows 7 and Windows 8. A good way to install is in order, for example, Windows XP first, followed by Windows 7 and Windows 8.

    An alternative is to use the Hyper V virtual machine software (provided with Windows 8 Pro and Enterprise of Windows 8) to create virtual machines of all operating systems. Personally, I use VMware Workstation (not free I'm afraid). VMware Workstation I running Windows XP, Windows Vista and Windows 7 with Windows 8 as the host and the other as guest operating systems.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk |  vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • My office can work with two operating system - Windows vista and Windows XP Profession (both real)

    I currently have Windows Vista 32-bit preinstalled by DELL, when I bought my computer Dell E-520 in July 2007. Before that, I had a computer of IBM Office Professional XP was preloaded. This IBM desktop computer was transferred to my daughter and she uses it. I have XP Professional Sytem disc pack 1 with me. Thus, the two operating systems are genuine Microsoft Product. My Qerry is (i) can I load the software professional XP in my hard drive partitioned D: (ii) the drive will I have labels "only for use with restore more!" CD.". The intermediary is hp Workstation (for the latest software and drivers, see using HP)... Please suggest me what should I do? How I will proceed with my idea. XP Professional has a GRAPHIC software that conforms to my profession as a Finance consultant, this software under Vista is not so complex and not being is not my goal. All tips that can be extended to me in my Inbox services is available: ' * address email is removed from the privacy *'. Thank you.

    Hi Bhaisona

     

    1. do you have a new or different XP pro drive?
    2. the new drive has a different product key for XP operating system installed on the desktop IBM?

     

    If the disc XP Professional nine and a key of different product, then you can install the computer with the Windows Vista operating system in a dual-boot configuration.

     

    See the links for more information on multiboot - below

    http://Windows.Microsoft.com/en-us/Windows-Vista/install-more-than-one-operating-system-multiboot

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-dual-boot-system-from-Windows-Vista-inside-out

    http://Windows.Microsoft.com/en-us/Windows-Vista/can-I-have-more-than-one-operating-system-on-my-computer-multiboot

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-the-default-operating-system-for-startup-multiboot

     

    I hope this helps.

  • Problem with like operator

    Hi all
    We use as operator for the search feature (oracle 10G).
    could someone help me in managing null, when we use as operator.

    Ex:
    Select empno, ename, d.deptno
    from emp e, Dept. d
    where e.deptno = d.deptno
    and e.ename like '% JO %';

    We have a text box to the end before you enter the name of the employee (ename) or part of ename. When the user does not use this option, he leaves it empty.

    so in the query above, if ename is null then alors my query fails.

    could someone help me handle this scenario.
    My query should still give me all employee IDS, if the ename is empty.

    using the dynamic sql is not advisable.

    Thank you
    Manju

    Something like this->

    satyaki>select *
      2     from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    Elapsed: 00:00:00.26
    satyaki>
    satyaki>
    satyaki>select *
      2  from emp
      3  where upper(ename) like nvl('%'||upper('&str')||'%',upper(ename));
    Enter value for str:
    old   3: where upper(ename) like nvl('%'||upper('&str')||'%',upper(ename))
    new   3: where upper(ename) like nvl('%'||upper('')||'%',upper(ename))
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          9999 SATYAKI    SLS             7698 02-NOV-08      55000       3455         10
          7777 SOURAV     SLS                  14-SEP-08      45000       3400         10
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       4450                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       7000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
    
    13 rows selected.
    
    Elapsed: 00:00:00.02
    satyaki>
    satyaki>/
    Enter value for str: sa
    old   3: where upper(ename) like nvl('%'||upper('&str')||'%',upper(ename))
    new   3: where upper(ename) like nvl('%'||upper('sa')||'%',upper(ename))
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- --------- ---------- ---------- ----------
          9999 SATYAKI    SLS             7698 02-NOV-08      55000       3455         10
    
    Elapsed: 00:00:00.08
    

    Kind regards.

    LOULOU.

  • Most of the software do not work with Windows 7. Get the error internal 577 or say "Not Compatible".

    Original title: does not work with Windows 7 Internal error 577 people saying "Not Compatible" some just to start all__And more

    I just got a new pc with windows 7 on it. NONE of the software or programs I had on my other pc running windows xp with service PAC 2 will work. The resolution of compatibility issues doesn't help no one can tell me why all the software that I do not work!

    What is in windows 7 and not windows xp which is stop ALL my programs not to work, no matter what I try.

    More than 13 hours on the phone and many emails and nobody can give me a clear answer. Thay all tell me to go to the provider of the program! Sellers tell me it should work, then return & suite back & suite. PLEASE, SOMEONE CAN'T ME TELL HOW THESE WORK PROGRAMS AND GAMES!  ILS ALL WORKS very WELL WITH WINDOWS XP and used now work at all with windows 7

    Please HELP, I spent WAYYYY too much money on the children's playground and other business and tax software that now does not work with windows 7

    Also Im not the smartest person so if someone does not respond that I need step by step instructions. Thank you very much

    I can also be reached at * address email is removed from the privacy *.

    Hello Jimmie Jr.,

    The problem is that the software or programs that have been created for the previous operating systems such as Windows 95/98/XP have no way to correctly work with an operating system like Windows 7 that did not exist when the programs were written. Windows Vista and Windows 7 have been written on a different kernel of Windows 95 and Windows XP. However, you can try compatibility mode and if this does not work you can try using a virtual machine to run the software. Much of the time the software publisher will publish updates to make old software work with newer operating systems.

    If the program is not compatible, then you try to install and run the program in compatibility mode.

    Use the following steps:

    (1) right click on the program

    2) click Properties

    3) click on the Compatibility tab

    (4) select run this program in compatibility mode and select Windows XP or other system that the program has been run successfully operating.

    Check out the link here: make sure to run older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    If compatibility is not successful, then try and self-test program compatibility issues:

    1. open the program compatibility problems theStart button.

    Then click on Control Panel. In the search box, typetroubleshooter, then clickTroubleshooting. Under programs, clickRun done for previous versions of Windows.

    2. follow the instructions in the troubleshooting.

    If you are unable to install a program, insert the installation disc for the program and, using the Troubleshoot utility, navigate to the program setup file, usually called Setup.exe, Install.exe, or something similar. This utility is not designed to work on programs that have an .msi file name extension.

    If you are running Windows 7 Professional or Ultimate version, install Windows Virtual PC and Windows XP mode (http://www.microsoft.com/windows/virtual-pc/default.aspx) and run your software in Windows XP.

    If you run Windows 7 Home Premium, try VirtualBox (www.virtualbox.org) or VMware Player (www.vmware.com), or any other software virtualization part 3rd and install a separate copy of Windows XP (family or professional edition) for this purpose. You can find the virtualization software free that will run on Windows 7 Home Premium.

    Hope this helps you understand better.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • The latest Firefox does not work with Mac OS 10.4.11. How can I get the previous version of Firefox?

    I have Firefox 12.0. It does not work with Mac OS 10.4.11. I don't want to have to buy a new computer right now. I would go back to a previous version of Firefox that will work with my operating system. How can I download an older version of Firefox?

    You can find the latest version of Firefox 3.6.x in all languages and for all systems operating here:

  • HP 8250 printer won't work with windows 7

    I bought a pavilion dv6 with windows 7 and it won't work with my hp8250 printer. I tried the things listed in this forum.

    This utility is unable to identify the problem.  My printer is not directly connected to my laptop.

    It is to be shared with my office... other ideas anyone?  I took it to the shop and they supposedly fixed it, but not...

    Thank you

    JB

    I bought a pavilion dv6 with windows 7 and it won't work with my hp8250 printer. I tried the things listed in this forum.

    This utility is unable to identify the problem.  My printer is not directly connected to my laptop.

    It is to be shared with my office... other ideas anyone?  I took it to the shop and they supposedly fixed it, but not...

    Thank you

    JB

    I assume you actually mean that you have a printer HP Photosmart 8250?

    This printer is essentially - not * really * supported by HP to the title of the edition of Windows that you are using.  That's about what I believe it means when you choose the operating system on the Web of HPs site for your printer and you get the, "installation of the product with the USB cable and using the driver located in the Windows operating system _»<-- they="" gave="" some="" generic="" universal="" driver="" to="" microsoft="" for="" distribution="" and="" you="" might="" get="" it="" working,="" but="" it="" may="" not="" have="" all="" the="" features="" you="" used="" to="" have="" in="" an="" other="">

    One thing probably listed in these forums is to replace the printer inherited by a support by the manufacturer of equipment under an operating system, that you have chosen to run... That failed?  * smile *.

    Honestly - reviews and other for this printer back in 2004 I can say - it means that this printer is old enough (although more recent you).  I'm shocked they kept alive that long, really.  Looking at the Vista drivers and others, later are of March 2007, over 5 years.

    I think you you would save a lot of time and invest in a newer printer that is designed to work with modern operating systems, :-) grief

  • Recently I install Adobe Pagemaker 7.0, but it is not my system hindi font visible just like the series Devi ismayl, KBC Serise etc. these fonts are is visible and working with Adobe photoshop, corel, office etc. and works well. Veuileez solve this proble

    Recently I install Adobe Pagemaker 7.0, but it is not my system hindi font visible just like the series Devi ismayl, KBC Serise etc. these fonts are is visible and working with Adobe photoshop, corel, office etc. and works well. Veuileez solve this problem as soon as possible.

    Can you also please check whether this version is still appropriate for your operating system?

    See: Adobe - Pagemaker 7: System requirements

    The system configuration required

    Windows

    • Microsoft® Windows NT® 4.0 with Service Pack 6, Windows® 2000 Professional with Service Pack 2, Windows XP Professional or home edition

    It is not recommended to run this software on any Mac modern like Windows 7 or 10.

    Good luck!

  • Re: Serial number down would work with the other Windows Vista operating system

    First of all sorry for my English.
    I have one question.

    My hard drive is broken with my recovery partition.
    If I download windows vista and install the system with my original serial number on the laptop, this will work or should I activate it after installation.

    I hope it's the same number that the front is installed on my first installation.

    Hello Marcin

    I doubt that the serial number that is placed at the bottom of the device works with another Windows Vista operating system. But it s worth a try
    You could test it I heard it's very rare cases it was possible

    In any case, if your HARD disk is damaged and it of not possible to create a recovery DVD using recovery software Toshiba disc creator, then you must contact the ASP in your country for assistance.

    If the warranty is valid the HARD drive should be replaced just for free. If you need only the recovery DVDs, then you can order it here:

    https://backupmedia.Toshiba.EU/landing.aspx

    Concerning

  • Help! My operating system does not work with disc

    When I installed the DIGITAL SOLUTION DISK for my new EOS 7 d mark ii a window pops up stating:

    This software is not compatible with your operating system

    I use an old dell works well with XP, is there a way to get around this, I already have photo professional, eos utility etc. of my rebel...

    ANY help would be greatly appreciated

    Having been forced to upgrade too because I need to process RAW images from the 2 7 using Photoshop, I can tell my updates went well. I bought Win 8.1 & done a clean install on a new hard drive & waited to win 10 out & from my old programs would continue to operate. 10 once was readily available that I made an another clean install on another hard drive as an installation & nine 64-bit (added 16 gigabytes of memory also) & things was great when working in Photoshop, BUT for all those who 7 2 treatment check CR2 what device profile is best. By default, it chooses an Adobe profile that works very well with my other camera files but Standard camera looks better with 7 2 files.

    (My computer has provisions for 5 internal hard drives & I 5) I can easily re boot for XP or Win 8.1 if I need to use one of my old programs, but so far, I've been running Win 10 on my office & XP on my laptop.

  • What is the printer that HP 7525 works with the windows 8.1 operating system?

    What is the printer HP 7525 Photo Smart works with the windows 8.1 operating system?

    Hi Alex7171,

    Yes it does, you can follow this link to download drivers

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?cc=us&DLC=en&LC=en&product=5286643&I

  • I would like to know if Microsoft Wireless Desktop 3000 also works with rechargeable batteries

    Hello

    I just bought a Wireless Desktop 3000 (keyboard + mouse).

    I would like to know if it also works with rechargeable batteries for normal alkaline batteries (batteries recommended) are 1.5 V batteries (NiMH) are only 1, 2V.  The keyboard uses 2 batteries and the batteries in the mouse 2 also.

    Thank you

    Lorant

    Original title: Microsoft Wireless Desktop 3000

    Hello Lorant,

    Thanks for posting your question on the Microsoft Community forum.

    It is generally recommended to use the batteries that are similar to the integrated batteries. However, you can try to use rechargeable batteries, but make sure that the electrical parameters are not much different.

    Warning : Risk of explosion if battery is replaced by an incorrect type. Use by replacing only with the right size and type of batteries (alkaline, carbon zinc, or zinc chloride).

    For more information, you can consult the following product guide for Microsoft Wireless Desktop 3000: product guide

    Hope this information is useful. Please feel free to post any of your Windows problems, we will be happy to help you.

  • I used to work with Interbase and Firebird and used databases the keyword "domain". I am now switchig to Oracle as a primary database and would like to find an alternative appropriate "domain" in Oracle, as it appears he does ' t taken in charge the stand

    I used to work with Interbase and Firebird and used databases the keyword "domain".

    I am now switchig to Oracle as a primary database and would like to find a suitable

    Variant of 'area' in Oracle such that it appears he does ' t support the standard SQL syntax.

    for example:

    Create the int2 smallint field;

    create domain id2 int2 default 0 not NULL; / * for the primary key * /.

    create domain rel2 int2 default 0 not NULL; / * foreign key * /.

    I tried a couple of approaches to achieve this "area" is:

    1. create synonym - cannot be used with the basic types;

    2. create the type - type of work, but the implementation is rather clumsy

    and can be costly in terms of performance.

    Is there something else to Oracle that can emulate the feature "domain"?

    Thanks in advence, I got really approciate any help on this.

    Alex.

    Your best approximation is CREATE TYPE, but their is nothing of what is a 100% adjustment.

    For example, if you create a domain with a check constraint you need to implement than separately on each table.

Maybe you are looking for

  • Satellite U305-SP2808 - I am using full 4 GB of RAM

    I have a Satellite U305 - sp2808 the processor is an Intel core (TM) 2 duo CPU T5450 I was reading syntactic processor and 64-bit, the BIOS version is 3.80 02/01/2008. My system is configured is posible to upgrade to WIndows 7 64-bit,I'm trying to us

  • Remove contacts

    I want to start separating my personal contacts working contacts placing them on two different accounts. But I don't see how to delete existing contacts on the latest version of Skype for Mac. When I right click on the contact it only gives you the m

  • new hard drive, Wireless does not

    I had to install a new hard drive and reinstall windows 7 on my Pavilion dv6. I downloaded the drivers for the network card and you can get on the internet with wire connected. When I installed the drivers wireless I get compatibility box that says d

  • two consecutive measures of distance

    Hello everyone,I want to take two consecutive measures of distance, let's say that the first is a second one is B and then I have to do A / BPlease find below the program

  • Weird problem, copy files don't mix well with the background change...?

    It is a small thing, but when I try to copy a new version of a file on the desktop, a window opens, asking me if I want to replace the old version. I already knew that, is not a problem. However, I also put my wallpaper to change every few seconds (c