The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Gopi.
Asked: August 25, 2016 - 6:37 pm UTC
Last updated: August 26, 2016 - 2:14 am UTC
Version: 11g
Viewed 1000+ times
SQL> select to_char(sysdate,'DAY') from dual; TO_CHAR(SYSDATE,'DAY') ------------------------------------ FRIDAY SQL> select 'x'||to_char(sysdate,'DAY')||'x' from dual; 'X'||TO_CHAR(SYSDATE,'DAY')||'X' -------------------------------------- xFRIDAY x
Rajeshwaran Jeyabal, August 26, 2016 - 6:13 am UTC
demo@ORA12C> select 'x'||to_char(sysdate,'DAY')||'x' from dual; 'X'||TO_CHA ----------- xFRIDAY x 1 row selected. demo@ORA12C> select 'x'||to_char(sysdate,'fmDAY')||'x' from dual; 'X'||TO_CHA ----------- xFRIDAYx 1 row selected. demo@ORA12C>
More on PL/SQL routine DBMS_OUTPUT here