I have a full length item code that I am looking for, '34FDE353UE2'
and a table full of a shortened version of said item codes, like this
itemCode
============
34FDE
35DCF
34FPE
....
How can I look through my rows to see if any of them match the '34FDE353UE2'
? In my example, I would hope to get back the first row since 34FDE
is a substring of '34FDE353UE2'
. How can I write a query to do this?
Using MySQL 5.6.