简体   繁体   English

scala anm和mysql

[英]scala anorm and mysql

I wanna read all the records of the table by using mysql stored procedure with scala play2 anorm. 我想通过使用带scala play2 anorm的mysql存储过程来读取表的所有记录。

The procedure below:- 步骤如下:

create or replace procedure readAllUsers(p_cur sys_refcursor) as
begin
   open p_cur for select * from users;
end;

your kind help is much appreciatable. 您的帮助非常可贵。

Using raw sql commands you can call stored procedures within anorm. 使用原始sql命令,可以在anorm中调用存储过程。 Straight from the documentation examples: 直接来自文档示例:

SQL("EXEC readAllUsers").execute()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM