带文本的oracle sysdate插入
我必须在oracle的评论栏中插入这样的文字: 当前年利率设置在带文本的oracle sysdate插入,oracle,Oracle,我必须在oracle的评论栏中插入这样的文字: 当前年利率设置在sysdate 其中,当前年份需要插入为2012年,sysdate给出今天的日期 我知道如何从sysdate获取当前年份,但我一直在将上面的文本插入到我的专栏中。请给我一些建议 update the_table set the_comment = 'current year rate is set on '||to_char(sysdate, 'yyyy-mm-dd');
sysdate
其中,当前年份需要插入为2012年,sysdate给出今天的日期
我知道如何从sysdate
获取当前年份,但我一直在将上面的文本插入到我的专栏中。请给我一些建议
update the_table
set the_comment = 'current year rate is set on '||to_char(sysdate, 'yyyy-mm-dd');