mysql中,可以用select来操作存储过程吗?
Jump to turn (13)
- 1mysql中,可以用select来操作存储过程吗?
- 2select count(0) from ( {call procedurename()} ) tmp 这样写对吗?
- 3但是报错喔,错误如下:You have an error in your SQL syntax; check the manual that correspon
- 4那存储过程有什么要求?
- 5来个例子
- 6返回一个表的例子了?
- 7select from (call report()) as tmpcount 报错You have an error in your SQL syntax;
- 8是不是myssql8的问题?
- 9mybatis怎样调用mysql8的存储过程
- 10表变量怎样写?
- 11好像不对的喔
- 12也不行,是mysql8
- 13出错,提示 CONDITION or CURSOR expected, got 'table'
- User
mysql中,可以用select来操作存储过程吗?
- Assistant
可以,可以使用以下语法来执行存储过程:
mysqlCALL procedure_name();也可以使用以下语法来执行存储过程并传入参数:
mysqlCALL procedure_name(parameter1, parameter2, ...); - User
select count(0) from ( {call procedure_name()} ) tmp 这样写对吗?
- Assistant