redstarfcs
10-13-2004, 04:01 PM
I need to select some information that are in a database..I have category field that contain the numbers of some categories, this field is a text field
I need to select category 5
My database structure is:
id---name-------category
1 Test 5
2 Good 12 15 7 5
3 Test 2 123 15 10
4 Test 3 33 424
5 Test New
6 Better 12
I use the following query:
select id from db_table where category in('','5')
MySQL engine select only id=1, why it doesn't select also ids: 2 and 5
I need to select category 5
My database structure is:
id---name-------category
1 Test 5
2 Good 12 15 7 5
3 Test 2 123 15 10
4 Test 3 33 424
5 Test New
6 Better 12
I use the following query:
select id from db_table where category in('','5')
MySQL engine select only id=1, why it doesn't select also ids: 2 and 5