日期:2014-05-20  浏览次数:20660 次

偶很菜,高手来指点一下哈,快疯掉了
大家知道这个是什么错误吗??都快疯了
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]The name "_blog_base_url" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)


------解决方案--------------------
不能把表字段的名字直接放在SQL表达式里
------解决方案--------------------
贴sql