Oracle does not like inserting 2000-12-01 00:00:00.1 into a date field. Error is ORA-01861: literal does not match format string. But this is the format it returns in a result set on existing date data. Does anyone know do I insert a DATE into a DATE field of Oracle 8 using SQL?
Thanks,
Chris
insert into UPS_OUT (CUSTOMER_IDENTIFIER, DATE_ORDERED, ORDER_KEY, SERVICE_TYPE, BILLING_OPTION, NOTIFY_OPTION, NOTIFY_TYPE, NOTIFY_EMAIL, SHIP_NAME, SHIP_STREET, SHIP_CITY, SHIP_STATE, SHIP_ZIP, SHIP_COUNTRY, PACKAGE_TYPE) values ('" + identifier + "','2000-12-01 00:00:00.0','" + orderKey + "','G','PP','Y','E','" + email + "','" + name + "','" + shipStreet + "','" + shipCity + "','" + shipState + "','" + shipZip + "','" + "US" + "','PKG')
Thanks,
Chris
insert into UPS_OUT (CUSTOMER_IDENTIFIER, DATE_ORDERED, ORDER_KEY, SERVICE_TYPE, BILLING_OPTION, NOTIFY_OPTION, NOTIFY_TYPE, NOTIFY_EMAIL, SHIP_NAME, SHIP_STREET, SHIP_CITY, SHIP_STATE, SHIP_ZIP, SHIP_COUNTRY, PACKAGE_TYPE) values ('" + identifier + "','2000-12-01 00:00:00.0','" + orderKey + "','G','PP','Y','E','" + email + "','" + name + "','" + shipStreet + "','" + shipCity + "','" + shipState + "','" + shipZip + "','" + "US" + "','PKG')