当前位置: 代码迷 >> Oracle面试 >> oracle 时间的定义解决办法
  详细解决方案

oracle 时间的定义解决办法

热度:9329   发布时间:2013-02-26 00:00:00.0
oracle 时间的定义
表actor中有一列current_time  想在给这个表中插入数据时,自动获取本机当前时间赋给该列
请问:该列的属性和相关的SQL语句怎么定义?
------解决方案--------------------------------------------------------
属性date    取sysdate
------解决方案--------------------------------------------------------
alter table actor modify current_time default sysdate;

------解决方案--------------------------------------------------------
解决了,谢了
  相关解决方案