我使用的是 Ubuntu 12.04,iReport-4.7,MySQL,mysql-jdbc 驱动程序
我在MySQL中编写存储过程
DELIMITER //
CREATE PROCEDURE first()
BEGIN
select * from person where id in (11,22,33);
END //
DELIMITER;
返回 id
和 name
作为字段
&从 iReport 调用它
select id+1,name from (call first)
给我语法错误,
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: 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 first)' at line 1
但是当我在查询执行器中运行先调用
时,没有错误
我应该如何获得进一步计算所需的字段? 这在 MS-SQL 中可能吗?
最佳答案
关于mysql - 如何在iReport中获取存储过程的结果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14558109/