我想从 PostgreSQL 中的一列中计算平均数
SELECT AVG(col_name)
From TableName
它给了我这个错误:
ERROR: function avg (character varying) does not exist
LINE 1: SELECT AVG(col_name)
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.