[20170705]理解linux su命令.txt --//我一般在维护时经常使用root用户登录,然后su - oracle 转到其他用户操作--//一般都加入 - 参数.这个已经成了条件反射...^_^. # man su Change the effective user id and group id to that of USER. -, -l, --loginmake the shell a login shell --//也就是使用login里面的shell,设置好对…
numtodsinterval(<x>,<c>) ,x是一个数字,c是一个字符串,表明x的单位,这个函数把x转为interval day to second数据类型 常用的单位有 ('day','hour','minute','second') example SQL> select sysdate,sysdate+numtodsinterval(3,'hour') as res from dual; SYSDATE RES -------------…
原文来自:http://blog.itpub.net/756652/viewspace-697256/ 11g interval分区,按天分区,需要用到函数numtodsinterval. create table T_PAR(dt date)partition by range (dt)interval(numtodsinterval(1,'day'))(PARTITION SYS_001 VALUES LESS THAN (TO_DATE('20110501','yyyymmdd')))…
Sys.Date( ) returns today's date. date() returns the current date and time.# print today's datetoday <-Sys.Date()format(today, format="%B %d %Y")"June 20 2007" # convert date info in format 'mm/dd/yyyy'strDates <- c("01/05/1…