java JDBC连接sql sever显示:关键字 'Table' 附近有语法错误
for(intt=1;intt<21;intt++){ResultSetrs=stmt.executeQuery("SELECTtableNum,tableType,ta...
for(intt=1;intt<21;intt++) { ResultSet rs=stmt.executeQuery("SELECT tableNum,tableType,tableState FROM Table where tableNum = " +intt); while(rs.next()){ System.out.println(rs.getInt("tableNum")+" "+rs.getInt("tableType")+" "+rs.getInt("tableState")); state[i] = rs.getInt("tableState"); } }
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询