djlebarron
29 Nov 2008, 11:06 AM
I've got a need to insert mulitple town names into one MySQL field named "towns". I then need to access information in a query from all the rows that have certain town names. Not a combination of town names, but from a list of town names or just one town name. In other words, row A, field "towns" would have Buffalo, Youngstown, Pittsburgh. row B, field "towns" would have Atlanta, Philidelphia, Roanoke...etc. My query wants the information from field "Event" from all rows with Roanoke in the "towns" field. How should the array in "towns" appear in the dbase so I can query by Roanoke successfully?
I put simply
Atlanta, Philidelphia, Roanoke,
in the "towns" field, but my query won't recognize the single town Roanoke even when I use the "like" condition.
I put simply
Atlanta, Philidelphia, Roanoke,
in the "towns" field, but my query won't recognize the single town Roanoke even when I use the "like" condition.