xuol001 发表于 2016-9-4 11:12:21

SQL关于日期类型的操作

SELECT to_char( t.start_datetime_use, 'yyyy-mm-dd-hh24:mi') from ocm_system_user t

更新为自定义时间
update ocm_system_user set start_datetime_use=to_date('2007-02-01 13:33','yyyy-mm-dd hh24:mi') where SYSTEM_USER_ID=1
更新为系统时间
update ocm_system_user set start_datetime_use=sysdate where SYSTEM_USER_ID=3
页: [1]
查看完整版本: SQL关于日期类型的操作