Home » Developer & Programmer » Forms » Updating Date..
Updating Date.. [message #81446] Tue, 18 February 2003 23:58 Go to next message
Muzzammil
Messages: 99
Registered: February 2003
Member
Hi experts,

I have table which contains idate field in date format.

I want to update only mon-rrrr without DD what should I do. It should be in date format only not numeric or char format.

Kindly help.

Regards,

Syed Muzzammil.
Re: Updating Date.. [message #81447 is a reply to message #81446] Wed, 19 February 2003 00:26 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Do not post every question in multiple forums please.

Look at the other forum for an answer.
Re: Updating Date.. [message #81451 is a reply to message #81446] Wed, 19 February 2003 03:12 Go to previous message
magnetic
Messages: 324
Registered: January 2003
Senior Member
suppose you want to update idate=19-FEB-2003
var1 varchar2(9):= to_char(idate,'DDMONRRRR')
var2 varchar2(9):= DD||'MAR2003';
where DD is the same DD and MAR2003 is the new value.
update table x
set idate=to_date(var2);
commit;
the clue is working with variabeles and converting date formats to varchar2 and reverse conversion to date again.
Previous Topic: help us please it is very important
Next Topic: custom logon screen...help!!!! ASAP!!
Goto Forum:
  


Current Time: Sat Apr 20 05:15:44 CDT 2024