是否可以在 Spring 中使用 SimpleJdbcCall 调用它并将 List 作为变量传递?
MYSQL
DELIMITER //
CREATE PROCEDURE example(IN list ?)
BEGIN
SELECT * FROM exampleTable WHERE exampleColumn IN (list)
END //
爪哇
SimpleJdbcCall jdbcCall = new SimpleJdbcCall(source).withProcedureName("example");
SqlParameterSource in = new MapSqlParameterSource().
addValue(?, ?);
Map<String, Object> out = jdbcCall.execute(in);