Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Interesting Behavior using REVERSE()
"Alan" <alan_at_erols.com> wrote in message
news:c516b7$2mme4v$1_at_ID-114862.news.uni-berlin.de...
> Seems like a great way to hide dates, if you ever need to...
>
> SQL> SELECT TRUNC(SYSDATE) AS TEST_DATE FROM DUAL;
>
> TEST_DATE
> ---------
> 07-APR-04
>
> SQL> SELECT REVERSE(TRUNC(SYSDATE)) AS TEST_DATE FROM DUAL;
>
> TEST_DATE
> ---------
> 00-DECEMB
>
> SQL> SELECT REVERSE(REVERSE(TRUNC(SYSDATE))) AS TEST_DATE FROM DUAL;
>
> TEST_DATE
> ---------
> 07-APR-04
>
>
>
Sort of. It relies on a specific nls date setting so it won't work for some nls date settings (or different results) Jim Received on Wed Apr 07 2004 - 10:39:26 CDT