难道楼主不会sql?
update dcr
set
dec_date=to_date('1999-10-8','yyyy-mm-dd') ,
dec_time=to_date('1999-10-8 10:20:3','yyyy-mm-dd 24hh:mm:ss')
update dcr
set
dec_date=to_date('1999-10-8','yyyy-mm-dd') ,
dec_time=to_date('1999-10-8 10:20:3','yyyy-mm-dd 24hh:mm:ss')
set
dec_date=to_date('1999-10-8','yyyy-mm-dd') ,
dec_time=to_date('1999-10-8 10:20:03','yyyy-mm-dd hh24:mi:ss');
你的错误是将mi写为mm
大家多帮忙想一下,不信您可以打开plsql看一下,确实会有这个错误
set
dec_date=to_date('1999-10-8','yyyy-mm-dd') ,
dec_time=to_date('1999-10-8 10:20:3','yyyy-mm-dd hh24:mm:ss')请将多余的空格去掉.
update dcr set dcr_date=to_date('1999-10-8','yyyy-mm-dd')
,dcr_time=to_date('1999-10-8 10:30:3','yyyy-mm-dd 24hh:mm:ss')
在plsql中运行这条语句报“格式代码出现两次”的错误,
如果你把第一条to_date或第二条to_date删去既只使用一种格式便没有错误,
大家放心我的to_date函数的格式肯定是正确的,救命啊