Home Forums SQL Server 2005 T-SQL (SS2K5) find whether a upper case letter is there in a given string RE: find whether a upper case letter is there in a given string

  • po 35213 (2/27/2013)


    A simple regular expression can do the job fine. I had to delete all records from my words table which begun with a capital letter. Here is what I used:

    SELECT *

    FROM `words`

    WHERE `text` REGEXP BINARY '^[A-Z]'

    replacing "SELECT" with "DELETE" worked well.

    Theodore Pokama

    It's not MySql forum...

    There are no REGEXP function in T-SQL (as yet ;-))

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]