Pentaho "=10="

Pentaho "Couldn't get row from result set" error

当我 运行 在我的 MySql 客户端 (DBVisualizer) 上进行此查询时,它 运行s。 (它的功能和工作 100%)

SELECT
    MAX(birth_date) AS max_bd
INTO
    @bd_max 
FROM
   employees.birthdays
WHERE
    gender= 'male';

当我在 Pentaho 中 运行 它时,在 "Execute SQL script" 中我得到这个错误

2018/11/04 10:44:08 - job_update_birthdays - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : An error occurred executing this job entry : 
2018/11/04 10:44:08 - job_update_birthdays - Couldn't get row from result set
2018/11/04 10:44:08 - job_update_birthdays - ResultSet is from UPDATE. No Data.

P.S。我为 Pentaho 和我的 Mysql 客户端使用相同的凭据。

您使用的命令实际上没有 returns 数据。在 SQL 中,INTO 命令会将数据从 SELECT 复制到另一个 table,SQL 所做的可能只是向您显示复制到的数据目标 table.

从查询中删除 INTO @bd_max 子句并 运行 它。