1.sysdate改为sysdate(),或者now(); 2.nvl(expr1,expr2) 改为IFNULL(expr1,expr2) nvl2(expr1,expr2,expr3)改为 IF(expr1,expr2,expr3); 3.to_date('19000101000000','yyyymmddhh24miss')改为select str_to_date('1900-01-01 00:00:00','%Y-%m-%d %H:%i:%s'),写法略有差异: date_format(…