Insertion in the declaration does not work with the DATE

I'm trying to run a script on 11 g express edition, and tables are created very well, but the records are not placed correctly. Any folder with a date in the field of the hire_date is not inserted. The field is of type DATE.

This is the beginning of the script.

Any ideas why it does not work?

-- CREATE THE L_EMPLOYEES TABLE
CREATE TABLE L_EMPLOYEES
(EMPLOYEE_ID    NUMBER(3),
FIRST_NAME      VARCHAR2(10),
LAST_NAME       VARCHAR2(20),
DEPT_CODE       VARCHAR2(3),
HIRE_DATE       DATE,
CREDIT_LIMIT    NUMBER(4,2),
PHONE_NUMBER    VARCHAR2(4),
MANAGER_ID      NUMBER(3));
ALTER TABLE L_EMPLOYEES
ADD CONSTRAINT PK_L_EMPLOYEES
PRIMARY KEY (EMPLOYEE_ID);

INSERT INTO L_EMPLOYEES VALUES
  (201, 'SUSAN', 'BROWN', 'EXE', '01-JUN-1998', 30, '3484', NULL);
INSERT INTO L_EMPLOYEES VALUES
  (202, 'JIM', 'KERN', 'SAL', '16-AUG-1999', 25, '8722', 201);
INSERT INTO L_EMPLOYEES VALUES
  (203, 'MARTHA', 'WOODS', 'SHP', '02-FEB-2009', 25, '7591', 201);
INSERT INTO L_EMPLOYEES VALUES
  (204, 'ELLEN', 'OWENS', 'SAL', '01-JUL-2008', 15, '6830', 202);
INSERT INTO L_EMPLOYEES VALUES
  (205, 'HENRY', 'PERKINS', 'SAL', '01-MAR-2006', 25, '5286', 202);
INSERT INTO L_EMPLOYEES VALUES
  (206, 'CAROL', 'ROSE', 'ACT', NULL, NULL, NULL, NULL);
INSERT INTO L_EMPLOYEES VALUES
  (207, 'DAN', 'SMITH', 'SHP', '01-DEC-2008', 25, '2259', 203);
INSERT INTO L_EMPLOYEES VALUES
  (208, 'FRED', 'CAMPBELL', 'SHP', '01-APR-2008', 25, '1752', 203);
INSERT INTO L_EMPLOYEES VALUES
  (209, 'PAULA', 'JACOBS', 'MKT', '17-MAR-1999', 15, '3357', 201);
INSERT INTO L_EMPLOYEES VALUES
  (210, 'NANCY', 'HOFFMAN', 'SAL', '16-FEB-2007', 25, '2974', 203);
COMMIT;

(or)

Check the nls_date_format by using the following query

Select the parameter, the value from v$ nls_parameters where parameter = "NLS_DATE_FORMAT.

output:

VALUE OF THE PARAMETER

-----------------------------------------------------

NLS_DATE_FORMAT JJ-LUN-AA

Based on the value above, you have to make a contribution.

Tags: Database

Similar Questions

Maybe you are looking for