Upper/Lower Characters
Posted in 2010
Topics: Versions, Editions & End-of-Life
Hi, We are using IBM Informix Dynamic Server Version 11.50.FC6 on SunOS 5.10 Generic_138888-08 sun4v sparc SUNW I want to know how can i get the information that do i have any upper or lower case character present in any particular column. Thanks. Shahzad Salam Kasi
SHAHZAD SALAM KASI wrote:
>Hi,
>We are using IBM Informix Dynamic Server Version 11.50.FC6 on
>SunOS 5.10 Generic_138888-08 sun4v sparc SUNW
>
>I want to know how can i get the information that do i have any upper or
lower >case character present in any particular column.
>
>Thanks.
>Shahzad Salam Kasi
Check for lower case characters -
select col1
from table1
where col1 <> upper(col1)
Check for upper case characters -
select col1
from table1
where col1 <> lower(col1)
SELECT (colname matches '*[A-Z]*') has_upper FROM sometable; Returns a boolean, so 't' or 'f'. Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) IIUG Board of Directors (art@iiug.org) Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Fri, Aug 13, 2010 at 3:12 AM, SHAHZAD SALAM KASI <skasi@i2cinc.com>wrote: > Hi, > We are using IBM Informix Dynamic Server Version 11.50.FC6 on > SunOS 5.10 Generic_138888-08 sun4v sparc SUNW > > I want to know how can i get the information that do i have any upper or > lower > case character present in any particular column. > > Thanks. > Shahzad Salam Kasi > > > > ******************************************************************************* > Forum Note: Use "Reply" to post a response in the discussion forum. > > --001636457510a7da64048db630e9