Hmm, why finding by '2' or '2' return the same record?

Posted by SXLee on Stack Overflow See other posts from Stack Overflow or by SXLee
Published on 2010-04-05T08:29:47Z Indexed on 2010/04/05 8:33 UTC
Read the original article Hit count: 291

Filed under:
|

Hi everyone, forget my newbie question, but why finding by '2' or '2' in Mysql returns the same record?

For example:

Say I have a record with string field named 'slug', and the value is '2'. And the following SQLs returns same record.

SELECT * From articles WHERE slug='2'  
SELECT * From articles WHERE slug='2' 

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql