首页 > 解决方案 > 有人可以解释一下为什么我的查询不起作用吗?

问题描述

select to_char(current_date,'"q'[Today]'''s date is DD-MM-RRRR"')as output from dual;

标签: sqlstringoracledatetime

解决方案


我认为这是你想要做的ORACLE

select to_char(current_date,'"Today''s date is" DD-MM-RRRR')as output from dual;
| 输出 |
| :------------------------- |
| 今天的日期是 20-11-2020 |

推荐阅读