提示这样的错误 java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]关键字 'from' 附近有语法错误。 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) at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source) at first.Demo123.main(Demo123.java:16)
------解决方案--------------------
------解决方案-------------------- "into" not "inte"
------解决方案-------------------- 只能说桥接法连接数据库是有bug的,改用网络法吧(导入sqljdbc.jar文件)
------解决方案-------------------- ct=DriverManager.getConnection("jdbc:odbc:mytext"); 改成 ct=DriverManager.getConnection("jdbc:odbc:mytext","","");