Help correctly to make a selection of the database.
I have a VARCAR
field, it stores the following value: '5.26,7'.
How to select all records where is '7'?
I tried LIKE'
om, but it turns out a bit wrong. Suppose you need '7', then I write LIKE '%7%'
, but mysql
will return all records where this number is present, including '17', '27'. I have a maximum of two-digit numbers.