Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Need help

Re: Need help

From: Michel Cadot <micadot{at}altern{dot}org>
Date: Sun, 10 Dec 2006 08:12:22 +0100
Message-ID: <457bb354$0$5941$426a74cc@news.free.fr>

"AstroBoy" <jack.tan_at_ihganahotels.com> a écrit dans le message de news: 1165731101.558940.239080_at_l12g2000cwl.googlegroups.com...
| In an Oracle table, the Name column have customers' names contain our
| normal letters A to Z, but also contain characters like &, *, @, etc. I
| need to run a query that would pick out all records with names that
| contain those unwanted characters with the exception of a dash and
| apostrophe, and of course A to Z letters.
|
| example:
|
| Smith
| O'Reily
| Anderson&Smith (should be picked up by the query)
| Mary-Jane
| Takahashi* (should be picked up by the query)
|
| The above may be easy to some of you but for a newbie like me, any
| assistance or pointers is greatly appreciated.
|
| ...Astro
|

select * from mytable
where translate(name,'#<here all allowed characters>','#') is not null /

Also: select keyword from v$reserved_words where keyword='NAME';

Regards
Michel Cadot Received on Sun Dec 10 2006 - 01:12:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US