Fetch Resultset of created&filled MSSQL temp table over Java
问题 query5 String query5 ="USE DBTwo\n" + "DECLARE @temp_table table (column1 VARCHAR(60))\n" + "insert into @temp_table (column1)\n" + "select column1 from real_table (nolock)"; query3 String query3 = "USE DBTwo\n" + "select column1 from @temp_table"; Connections; ResultSet rs1; Statement stmt; Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); String connectionUrl = "jdbc:sqlserver://192.168.131.10;" +"databaseName=DBOne;" +"user=" + "exuser" + ";" + "password="+"userpass" + ";" +