[英]Unable to fetch the column name in DB2
If you want to retrieve columns by name, then give that column a name using AS
.如果要按名称检索列,请使用AS
为该列命名。
Change your query to:将您的查询更改为:
select sum(a.salary) as total_salary, a.id from q.staff a group by a.id
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.