There are many functions oracle comes, some developers may be more familiar with some less used because it is not familiar with, before the two functions used to see my colleagues, feel the need to record it:
1. The random number sys_guid ()
如:select sys_guid() from dual;
2. Obtain a long time type get_second (), get_millisecond ()
Such as: select get_second (to_date ( '2017-12-10 11:13:10', 'yyyy-MM-dd HH24: mi: ss')) from dual; --- obtaining accurate to the second value
select get_millisecond (to_date ( '2017-12-10 11:13:10', 'yyyy-MM-dd HH24: mi: ss')) from dual; --- acquired value to the millisecond