整型的话你还加什么引号啊
String sql = "select * from username where [user]="+xingming+"" --最好user加中括号,user是个关键字,避免出错