Guest User

Untitled

a guest
Apr 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. SQL> col today new_value today
  2.  
  3. SQL> select to_char(sysdate,'YYYY-MM-DD') as today from dual;
  4.  
  5. TODAY
  6. ----------
  7. 2018-04-23
  8.  
  9. 1 row selected.
  10.  
  11. SQL> def today
  12. DEFINE TODAY = "2018-04-23" (CHAR)
  13.  
  14. SQL> accept dt date format YYYY-MM-DD default &today prompt "Enter a date (press ENTER for today's date): "
  15. Enter a date (press ENTER for today's date):
  16. SQL> def dt
  17. DEFINE DT = "2018-04-23" (CHAR)
Add Comment
Please, Sign In to add comment