MySQL Forums
Forum List  »  Quality Assurance

difference between sting and int set when useing "where in"
Posted by: li yue
Date: September 03, 2008 08:48PM

hi,
When I use "select id from table where number in('1,2,3,4')" and "select id from table where number in(1,2,3,4)" , I got much more rows with the second way. what's the difference between in('1,2,3,4') and in(1,2,3,4)?

thanks very much.

Options: ReplyQuote


Subject
Views
Written By
Posted
difference between sting and int set when useing "where in"
2493
September 03, 2008 08:48PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.