表变量作为My sql存储过程中的参数 [英] Table Variable As a parameter In My sql Stored Procedures

查看:157
本文介绍了表变量作为My sql存储过程中的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以将表变量作为参数传递给MySql中的存储过程

Can i pass table variable as a PARAMETER To a Stored Procedure in MySql

推荐答案

如果要将表作为参数传递到存储过程中-答案是否定的.只能传递标量值.

If you want to pass a table into the stored procedure as parameter - then answer is no. Only scalar values can be passed.

可以直接通过其名称访问该表;如果要使用该表名来构造和运行过程中的新查询,请查看

The table can be accessed by its name directly; if you want to use that table name to construct and run new query in procedure, then have a look at prepared statements.

这篇关于表变量作为My sql存储过程中的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆