之前"select count(*) from user where username="+username ;

一直报错,随便输入什么username,全部都报错,说没有对应的column,于是吧语句在mysql上敲,发现,要加如'';

"select count(*) from user where username='"+username + "'";

posted on 2013-07-17 23:37  xxyyjj  阅读(126)  评论(0编辑  收藏  举报