datetime字段UPDATE的问题。。 oracle8的数据库。我 update table_duty set Reg_time = '1909-4-10' where name = '张三'就说格式不符合。。Reg_time是datetime格式的,而且看里面其他数据也都是'1909-4-10' 这个样子的啊 请问这个该怎么写呢。。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update table_duty set Reg_time = to_date('1909-4-10','YYYY-MM-DD') where name = '张三' update table_duty set Reg_time = to_date ('1909-04-10','yyyy-mm-dd') where name = '张三' 时间不能这样直接修改到数据库中的,需要数据库自带函数进行格式化。1,3楼的都是正确的。注:to_date ('1909-04-10','yyyy-mm-dd') update table_duty set Reg_time =to_dat('1909-4-10','yyyy-mm-dd') where name = '张三'orupdate table_duty set Reg_time =date'1909-4-10' where name = '张三' 哦,原来要这样一下啊 我在程序里面写了个todate 转换之后还是字符型、、、、怪不得不行 马上去试试 :) 要用to_date(time,'yyyy-mm-dd') 转成日期型 .net Oracle实现添加数据并返回ID timesten 创建cache grid出现问题 oracle10g安装clusterware后的节点问题 ubuntu instrall oracle11g error 把一组数据转换成结果集的SQL怎么写? 一个关于排序的问题(在线等) ┣┫请教如何在已经遍历出的表中再遍历每个表中的字段? 关于视图的问题!!!急,请高手指教 在oracle中如何才可以看到数据库的表的记录? .bash_profile 需要每次source 有没有什么好的role关系表设计 提供一个呀 oracle char 类型时间 时间段 问题
注:to_date ('1909-04-10','yyyy-mm-dd')