Sorry to be a bother, but I've been working on this problem for three days with no 
succcess.

I store the result(s) of a multiple select listbox in a MySQL version 4.0.2 varchar 
field 

i.e. 2,3,4,5,6  as a selection example.  -> these results are stored in the table 
category under the field name category_common.

What I'm trying to do is to use the the the above results in a query such as follows:

The column content.content_common has the values of 2 and 3 and 4 in different rows. 
I've enclosed category.category_common in parentheses ()
which as I understand should treat category.category_common  as a list.

My question is the following query something that MySQL can render regarding the 
content.content_common IN (category.category_common) statement or 
am I doing something very wrong?

Once again, when I manually type in (2,3,4) in place of (category.category_common), I 
get the right answer.

How can I convert (category.category_common) into a list MySQL can understand?

*************************************************************************************************************************************
Select content_title, content_category, content_order, content_name1
from content, category
where  category.category_id = 'Intbk'  AND content.content_common IN 
(category.category_common)
Order by content.content_order
************************************************************************************************************************************

My platform is as follows:

W2k professional, tomcat 4.1.12, J2SDK 1.4.1, MySQL 4.0.2, mysql-connector-java-3.0.0 

Once again, Thanks for any help.

Happy Holidays,

Lenny Sorey

















---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to