Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Not a valid month error
Lance Prais wrote:
>
> I am trying to use the following insert statement but getting an
> error:"ORA-01843: not a valid month"
>
> What is the problem , I have converted the sysdate using this before with
> out any errors?
>
> Thank you in advance
> Lance
>
> insert into cp_license_use(Select A.Pc_session_id, a.pc_session_user_name,
> To_Char(SYSDATE,'MM/DD/YYYY HH:MI') From pt_client_event A where
> A.pc_event_op = 'LAUNCH' and A.pc_date >=SYSDATE -1
> minus
> Select B.Pc_session_id, b.pc_session_user_name, To_Char(SYSDATE,'MM/DD/YYYY
> HH:MI') From pt_client_event B where B.Pc_event_op = 'LOGOUT' and B.pc_date
> >=SYSDATE -1);
>
Are you sure that the 3rd column in cp_license_use is VARCHAR2 ?
-- Regards, Stephane Faroult Oriole Ltd -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Stephane Faroult INET: sfaroult_at_oriole.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Jan 28 2002 - 14:49:39 CST
![]() |
![]() |