Teradata SQL 中星期几的大写字母
我可以从数据中获取星期几,但我似乎无法转换为大写
这是我正在使用的语句:
CAST(CURRENT_DATE AS DATE FORMAT 'e4') (CHAR(9))
如何将其转换为大写?
我尝试用 UPPER 包裹语句的每个元素,但每次都会出错
UPPER(CAST(CURRENT_DATE AS DATE FORMAT 'e4') (CHAR(9)))
UPPER(CAST(CURRENT_DATE AS DATE FORMAT 'e4')) (CHAR(9))
任何帮助将不胜感激
I can get the day of the week from a data but I can't seem to convert to uppercase
This is the statement I'm using:
CAST(CURRENT_DATE AS DATE FORMAT 'e4') (CHAR(9))
How can I convert this to uppercase?
I've tried wrapping UPPER around each of the elements of the statement but I get errors each time
UPPER(CAST(CURRENT_DATE AS DATE FORMAT 'e4') (CHAR(9)))
UPPER(CAST(CURRENT_DATE AS DATE FORMAT 'e4')) (CHAR(9))
Any help would be greatly appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然可以修复当前的代码,但
最好切换到
While it would be possible to fix your current code
it's better to switch to