unknowncolumninwhereclause
发布时间:09/01 来源:未知 浏览:
关键词:
Unknown column ′xxx′ in ′where clause′
解决步骤:
sql中要是name是整型的倒不会涌现什么差错,而要是sql中字符串类型必需要包括在引号内。
所以修改sql为
String sql="select age from user where name=′"+xxx+"′";
则差错消散。
更多MySQL相干技术文章,请拜访MySQL教程栏目进行学习!
以上就是unknown column in where clause的细致内容,更多请关注 百分百源码网 其它相干文章!