Re: find word greater than 17
- From: Peter Nilsson <airia@xxxxxxxxxxx>
- Date: Wed, 23 Apr 2008 19:58:53 -0700 (PDT)
ci...@xxxxxxxxx wrote:
i am looking to find the first word of a field greater than 17
Some data examples would be useful.
select businessname
from tablename
where
CHAR(' ', businessname + ' ') > 17
-- field length > 17
where length(trim(businessname)) > 17
or...
-- has any (space delimited) word of length > 17
select regexp_substr(businessname, '[^[:space:]]{18,}')
from tablename
where regexp_like(businessname, '[^[:space:]]{18,}')
or...
-- first (space delimited) word has length > 17
select regexp_substr(businessname, '[^[:space:]]{18,}')
from tablename
where regexp_like(businessname, '^[^[:space:]]{18,}')
--
Peter
.
- References:
- find word greater than 17
- From: ciojr
- find word greater than 17
- Prev by Date: For 10g OCP: request info about upgrade exam 11g
- Next by Date: Re: Using sequences with mutiple partitions
- Previous by thread: find word greater than 17
- Next by thread: Installing the Oracle Database Made Easy
- Index(es):