Verify if the second character is a letter in SQL -
i want put condition in query have column should contain second position alphabet.
how achieve this?
i've tried _[a-z]%
in clause not working. i've tried [a-z]%
.
any inputs please?
you can use regular expression matching in query. example:
select * `test` `name` regexp '^.[a-za-z].*';
that match name
column test
table against regex verifies if second character either lowercase or uppercase alphabet letter.
also see sql fiddle example of data , doesn't match.
Comments
Post a Comment