Created
October 31, 2017 16:26
-
-
Save yoshikaw/480d7783dbf2e4ac0a1d8aaba1cf5cbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n 1989-01-0{7,8} $(date +%Y-%m-%d) | xargs -d\ -I@ echo -e "set pages 0 feedback off\nselect to_char(to_date('@', 'YYYY-MM-DD'), 'EEYY\"年 \"', 'nls_calendar=''Japanese Imperial''') || '@' from dual;" | NLS_LANG=American_America.AL32UTF8 sqlplus -S / as sysdba |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment