在oracle中取系统时间使用函数sysdate,而不使用getdate()。另外oracle还提供了字符转换函数
to_date(exp1,exp2),以及to_char(exp1,exp2)
to_date(exp1,exp2)
exp1:是char型的参数,要转换为日期类型的字符串
exp2:是char型的参数,要转换的日期格式to_char(exp1,exp2)
exp1:是Date型参数,要转换为字符串的日期
exp2:是char型参数,要转换的日期格式