EXEC [dbo].[BSOFT_PRO_GET_MAX] @IDENTITY = N'GY_IDENTITY_MS', @TABLENAME = N'MS_BRDA', @COUNT = 1 mybatis调用SQL这个存储过程
时间: 2024-03-17 11:44:51 浏览: 145
以下是MyBatis调用该存储过程的示例:
```xml
<select id="getMaxId" statementType="CALLABLE" parameterType="map" resultType="java.lang.String">
{ call dbo.BSOFT_PRO_GET_MAX(
@IDENTITY = 'GY_IDENTITY_MS',
@TABLENAME = 'MS_BRDA',
@COUNT = 1
) }
</select>
```
在`select`标签中,`id`是映射器方法名,`statementType`指定为`CALLABLE`,表示调用存储过程。`parameterType`和`resultType`分别指定输入参数和输出结果的类型。在存储过程调用语句中,使用`{ call }`语法,将存储过程名称和参数列表括在其中。`@IDENTITY`、`@TABLENAME`和`@COUNT`是存储过程的输入参数,直接在参数列表中指定即可。在结果类型中,指定为`java.lang.String`,表示输出结果为字符串类型。
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231045021.png)
![-](https://img-home.csdnimg.cn/images/20241231044937.png)
![-](https://img-home.csdnimg.cn/images/20241231044901.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)