利用map传条件参数报错!!若直接用String传条件参数就不报错??真心不到原因啦!!
<select id="getdate" parameterType="map" resultType="java.util.Map">
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=库名 AND TABLE_NAME=#{table}
</select>
***Exception in thread "Thread-254" org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'br_0f9fc7df1823c595d11c353ce1dca4b5' in 'where clause'
TABLE_SCHEMA=库名????
这写的是啥?
数据库库名嘛,自己已经解决啦!!不过O(∩_∩)O谢谢你帮忙看了