Microsoft
Software
Hardware
Network
Question : Oracle SQL containing word
Hi experts,
Assumed I have two records which one of fields (e.g. DESC) has this data:
- first record --> "OTHER LABORATORY ANIMALS"
- second record --> "OTHER ANIMAL ABC"
Using keyword "ANIMAL" in search criteria and if we use DESC like '%ANIMAL%', we will end up with getting two records.
What oracle sql command can I use for getting only second record (get only 'ANIMAL' and exclude 'ANIMALS')?
Thanks for your help.
Answer : Oracle SQL containing word
select * from table where REGEXP_LIKE(DESC, /[:space:]ANIMAL[:space:]/
);
use this one
Random Solutions
Dell Latitude Laptop - Will Not Shutdown, Startup Slow
Server 2008 NLB problem
How to Populate a ListBox Control with Values from an Access Database Table
Mac RDP clients slow?
to perform save after app deploy using jython scripts
Create linked server from MS Sql to oracle server
Javascript register...
Lotus Notes 8.5
How to store user pictures in Active Directory (2008 R2 forest functional level)
Cisco VPN Client 5.0.07.0290 on Windows 7 64 bit