mysql 5.1:如何使用 benchmark() 命令来测试对存储过程的调用?
我正在尝试对存储过程进行基准测试。
select benchmark(100000000,(select 1));
该基准测试有效,
但以下基准测试无效:
do benchmark(1000,(call test_login_user('a')));
它产生以下错误:有
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'call xpofb_login_user('a')))' at line 1
任何想法如何解决该问题吗?
I'm trying to benchmark a stored procedure.
select benchmark(100000000,(select 1));
this benchmark works
but the following benchmark doesn't:
do benchmark(1000,(call test_login_user('a')));
it produces the following error:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'call xpofb_login_user('a')))' at line 1
any ideas how to resolve the issue ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不能使用 benchmark() 来执行此操作,但您可以创建一个存储过程来执行此操作。
这是一个例子:
You can't do this with benchmark(), but you could create a stored procedure to do it.
Here's an example:
您不能
http://dev.mysql。 com/doc/refman/5.0/en/information-functions.html#function_benchmark
You can't
http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_benchmark