simplejdbccallfunction.execute只返回表中的一行

owfi6suc  于 2021-07-13  发布在  Java
关注(0)|答案(0)|浏览(153)
jdbcTemplate.setResultsMapCaseInsensitive(true);
        simpleJdbcCallFunction = new SimpleJdbcCall(jdbcTemplate)
                .withSchemaName("t1").withFunctionName("getuserlist");

        MapSqlParameterSource mapSqlParameterSource  = new MapSqlParameterSource();
        mapSqlParameterSource.addValue("userid", "admin");
        Map out = simpleJdbcCallFunction.execute(mapSqlParameterSource);

函数返回属于特定用户的所有行,但是map只得到一行?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题