gp_sydb=# select sum(qyt) from dwd_awws_i;
ERROR: function sum(character varying) does not exist
LINE 1: select sum(qyt) from dwd_awws_i;
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
gp_sydb=# select sum(qyt) from dwd_awws_i;
ERROR: function sum(character varying) does not exist
LINE 1: select sum(qty) from dwd_awws_i;
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
gp_sydb=# select sum(qyt::int) from dwd_awws_i;
sum
------
2455
(1 row)
postgresql 用sum某个字段求和,转换int 类型
最新推荐文章于 2023-11-14 17:00:52 发布