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
Excel VBA code to automatically set a Pivot Table filter on 2 specific values in a field
SQL Compare
Adding Roles to Roles In Custom Membership Provider - A Better Way ? C#, SQL, Oracle, ASP.NET
AJAX load HTML into DIV
Database structure - Coldfusion - storing file type
ASP.NET 2.0 Warning. Event ID 1309 Source ASP.NET.0.50727.0
PVST
endian
multiple users having outlook and phones checking one IMAP mailbox, is it a problem?
Exchange 2010 RPC error