日期:2014-05-16 浏览次数:20446 次
insert into StudentInfo (StuID,StuName,Birthday) values ('004','Jacky',to_Date('2009-3-8','yyyy-mm-dd'));
insert into StudentInfo (StuID,StuName,Birthday) values ('004','Jacky',sysdate);
select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual; --注意:mm代表月份, mi代表分钟 --或者: select to_char(sysdate,'yyyy-mm-dd hh:mi:ss') from dual;
select id,extract(year from hiredate)||'年'||extract(month from hiredate)||'月'||extract(day from hiredate)||'日' from employee;