Forum Moderators: open

Message Too Old, No Replies

query to retrieve lower case

         

shaan1980

5:08 pm on Jul 19, 2006 (gmt 0)

10+ Year Member



how would I be able to query a table to retrieve all strings that contain a lower case character

eq Table A contains Atrribute B and B has values t,T,y,Y

my query should return t,y

eelixduppy

1:14 am on Jul 20, 2006 (gmt 0)



I think you can use MySQL's regex [dev.mysql.com] to achieve this. I don't have much experience with this though.

coopster

4:41 am on Jul 20, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Regular expression matching is one thing, returning the values in the matched pattern is another. Different databases will offer different variations, but to the best of my knowledge MySQL does not currently return matched patterns, this is often done by using server-side scripting languages. The entire field value is returned and you then run the value through a regular expression to retrieve subpatterns.

shaan1980

1:56 pm on Jul 20, 2006 (gmt 0)

10+ Year Member



I'm using Sybase .

syber

4:21 pm on Jul 20, 2006 (gmt 0)

10+ Year Member



SELECT columnB
FROM tableA
WHERE ASCII(columnB) > 96

shaan1980

2:34 pm on Jul 31, 2006 (gmt 0)

10+ Year Member



Thanks .