mysql存储过程 “ FUNCTION line.sum does not exist.“,怎么解决?

mysql存储过程 “ FUNCTION line.sum does not exist.“,怎么解决?,第1张

哈哈, 这个情况我也遇到过。

原因估计是 SUM 后面,不能有空格缘故……

估计 MySQL 某些版本有这个毛病

mysql> select SUM ( sale_money ) FROM sale_report

ERROR 1630 (42000): FUNCTION test.SUM does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual

去除空格以后:

mysql> select SUM(sale_money) FROM sale_report

+-----------------+

| SUM(sale_money) |

+-----------------+

|       741407.00 |

+-----------------+

1 row in set (0.00 sec)

原因估计是 SUM 后面,不能有空格的缘故……

估计 MySQL 某些版本有这个毛病。

1

2

3

4

5

6

7

8

9

10

11

mysql>select SUM ( sale_money ) FROM sale_report

ERROR 1630 (42000): FUNCTION test.SUM does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual

去除空格以后:

mysql>select SUM(sale_money) FROM sale_report

+-----------------+

| SUM(sale_money) |

+-----------------+

| 741407.00 |

+-----------------+

1 row in set (0.00 sec)


欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/zaji/7437252.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-05
下一篇 2023-04-05

发表评论

登录后才能评论

评论列表(0条)

保存