With
SELECT prefix_id
FROM test
WHERE INSTR('077696666444',prefix,1) > 0
you get the prefix_ids of possible prefixes for the number.
How do you know 07769 is the correct prefix, and not 077?
|
Results 1 to 10 of 10
Thread: Query on where and like %Threaded View
|
Click Here to Expand Forum to Full Width |