dev09
asked on
MySQL PHP search - best practice
Hi,
I have a field in a table 'serials' that has comma delimited content. e.g. 12345,23456,34567
This field in each row does not contain the same numbers. So there are no overlaps of numbers.
If i was to perform an SQL query on the table to give the result of which record has a certain number, what would be the best query string to use?
Thanks
Paul
I have a field in a table 'serials' that has comma delimited content. e.g. 12345,23456,34567
This field in each row does not contain the same numbers. So there are no overlaps of numbers.
If i was to perform an SQL query on the table to give the result of which record has a certain number, what would be the best query string to use?
Thanks
Paul
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many thanks Ray and Julian. I like your way best Ray - it seems the most robust and accurate!
Open in new window
The problem with this is that it will find records with the following numbersOpen in new window
So to refine it you could doOpen in new window