我从未遇到过像这样的问题。我在mysql中使用简单的搜索查询(wamp) 我的查询是这样的
SELECT * FROM `members` WHERE `m_email`='heena@gmail.com';
如果我要更改值,
即使不起作用
SELECT * FROM `members` WHERE `m_email`='heena';
获得类似
的输出MySQL returned an empty result set (i.e. zero rows). ( Query took 0.0012 sec )
但如果我要去
SELECT * FROM `members` WHERE `m_id`=5 ;
//successful and showing output.
see here the values in table in mysql(wamp)
Edit Delete 5 heena e7f4a1abdd69d6c9a5b3f8b8736ea2f3 956333652 0 female
here is the structure for m_email field
m_email varchar(30) latin1_swedish_ci No None
答案 0 :(得分:0)
试试这个
SELECT * FROM `members` WHERE trim(`m_email`)='heena@gmail.com';
OR
SELECT * FROM `members` WHERE trim(`m_email`)='heena';