Cognos SQL _last_day_of_month

huangapple go评论56阅读模式
英文:

Cognos SQL _last_day_of_month

问题

我想在Cognos SQL中找到一个月的最后一天。当我在Cognos中使用函数时,我只得到一个错误消息,尽管日期格式是正确的(例如2023-02-14)。

你知道我在这里做错了吗?

英文:

I would like to find the last day of a month with Cognos SQL. When I use the function in Cognos I just get an error message, although the date format is correct (e.g. 2023-02-14).

Any idea what I am doing wrong here?

Cognos SQL _last_day_of_month

答案1

得分: 2

_last_of_month 函数期望一个日期数据类型,而您传递的是一个字符串。您需要将字符串转换为日期。此外,从语法角度来看,您有太多的闭括号。

英文:

The _last_of_month function expects a date data type and you are passing it a string. You will need to cast the string to a date. Additionally syntactically you have too many closing brackets.

huangapple
  • 本文由 发表于 2023年3月3日 21:29:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/75627694.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定