fanyali

------------------------查询---------------------------------

select  to_char(addtime, \'YYYY-MM-DD HH24:MI:SS \') from zemember;

SELECT * FROM zereviewplan where addtime <to_date(\'2017-01-01 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\');

-----------------------修改----------------------------------

update zemember set modifytime=to_date(\'2010-01-02 11:54:30\',\'yyyy-MM-dd hh24:mi:ss\') where username=\'fanyali\';

 

切记:

to_char(addtime, \'YYYY-MM-DD HH24:MI:SS \')
to_date(\'2017-2-29\',\'yyyy-mm-dd\')

分类:

技术点:

相关文章: