Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

I want to compare two comma separated values in mysql query. Here, t1.comma and t2.chk both fields contain comma separated values.

I have tried below given code for this but I get Error for it.
SQL
select * from tmp1 as t1, tmp2 as t2 where MATCH (t2.chk) AGAINST (t1.comma IN BOOLEAN MODE)

Error message:
#1210 - Incorrect arguments to AGAINST - This error displays in mysql

So, can anybody help me ...

Thank you in advance
Posted
Updated 2-May-16 23:38pm
v2
Comments
Patrice T 28-Apr-16 8:13am    
What error ?
ZurdoDev 28-Apr-16 9:05am    
Compare how? If they are equal? If they have the same list of items but in a different order?
Member 12479831 29-Apr-16 1:00am    
I want same values from both fields
ZurdoDev 29-Apr-16 7:05am    
That still does not make any sense.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900