swampBoogie:
very good, it works. I had to make a slight mod though, as I need with and without the dash, so here it is:
select * from t
where c like '$partNum%' replace(c,'-','') like 'partNum%'
Thanks, Eric
I am trying to perform a search using REGEXP on a part number field in a parts table, where some of the parts have dashes. i.e. NZ-23456 I need to ignore the dashes.
It is common for the customer to enter the beginning of a part number, such as "NZ2", and the part number NZ-23456...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.