MySQL Forums :: Newbie :: mysql regexp issue range


Advanced Search

mysql regexp issue range
Posted by: Sankar Raman V ()
Date: October 12, 2010 06:06AM

i need to match a range of values for a field which is part of the whole string for the field.

e.g.:

dataname="a1-2-30";

for this i need to match the field starting from 30 to 45;

i tried:

select * from tabel1 where dataname = 'a1-2-'. regexp '[30-45]';


but its not working, errocode given is 1064.

please let me know if this is correct or solution.

thanks in advance.

Options: ReplyQuote


Subject Written By Posted
mysql regexp issue range Sankar Raman V 10/12/2010 06:06AM
Re: mysql regexp issue range laptop alias 10/12/2010 06:51AM
Re: mysql regexp issue range Rick James 10/12/2010 08:12AM
Re: mysql regexp issue range laptop alias 10/12/2010 09:58AM
Re: mysql regexp issue range Sankar Raman V 10/12/2010 09:15PM
Re: mysql regexp issue range laptop alias 10/13/2010 01:57AM
Re: mysql regexp issue range Rick James 10/13/2010 08:25AM
Re: mysql regexp issue range laptop alias 10/13/2010 09:35AM
Re: mysql regexp issue range Rick James 10/13/2010 05:59PM
Re: mysql regexp issue range Sankar Raman V 10/19/2010 12:32AM
Re: mysql regexp issue range laptop alias 10/19/2010 01:25AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.