I have a table for storing the coverage area of ββa postman. It has two fields
postmanid covering_pincode
What I'm going to implement is when the user enters a pincode in a text box, a list of the postman that covers these pincodes is displayed.
I doubt how I can enter the values ββin the table
1. Multiple pincodes stored in single row like
postmanid->1, covering_pincode-> 626123, 626124, 626432, 654564
OR
2. Saving each pincode with each separate field, for example
postmanid->1, covering_pincode->626123,
postmanid->1, covering_pincode->626124,
postmanid->1, covering_pincode->626432,
postmanid->1, covering_pincode->654564
Please help which one is best for searching a table using pincode
source
share