gpt4 book ai didi

mysql - SQL 错误 1241 : Operand should contain 1 column(s)

转载 作者:行者123 更新时间:2023-11-30 22:58:43 26 4
gpt4 key购买 nike

<分区>

我一直在四处寻找,但我还没有找到解决方案,所以我想在这里问一下。我有这个查询,它返回 1241 错误。我做错了什么?

SELECT  
EMP_FORMAL,
employee.EMP_ID,
ROUND(ROUND(SUM(TIME_TO_SEC(TIMEDIFF(UREN_EIND,UREN_BEGIN))/3600),2)/(od_employee_extra.uren*0,4)*100, 2) AS SOM,
ROUND(SUM(TIME_TO_SEC(TIMEDIFF(UREN_EIND,UREN_BEGIN))/3600),2) AS UREN,
ROUND(SUM(TIME_TO_SEC(IF(IS_OPBON, TIMEDIFF(UREN_EIND,UREN_BEGIN), 0))/3600),2) AS FACTUUR_UREN,
od_employee_extra.uren*0,4 AS TOTAAL_UREN,
WEEK(UREN_DATUM,1) AS NUM
FROM
od_pc_common.urenreg

INNER JOIN
od_pc_common.employee ON (urenreg.EMP_ID = employee.EMP_ID)

INNER JOIN
od_common_settings.od_employee_extra ON (employee.EMP_ID = od_common_settings.od_employee_extra.EMP_ID AND employee.EMP_GROEP = od_employee_extra.EMP_GROUP)

WHERE
YEAR(UREN_DATUM) = 2014 AND
UREN_DATUM <= NOW() AND
employee.IS_ACTIVE = 1

GROUP BY
WEEK(UREN_DATUM, 1),
urenreg.EMP_ID

HAVING
NUM = 31;

ORDER BY
EMP_FORMAL ASC

提前致谢。 ;)

编辑:我刚刚弄清楚问题出在哪里。我们用逗号 ("0,4") 表示 float ,而 Sql 语法使用点 ("0.4") 代替。

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com