MERCADOS FINANCIEROS

jueves, 2 de abril de 2020

INTERVALO YEAR TO MONTH

sql> connect hr/hr;


CREATE TABLE candidates (
    first_name VARCHAR2(50) NOT NULL,
    last_name VARCHAR2(50) NOT NULL,
    job_title VARCHAR2(255) NOT NULL,
    year_of_experience INTERVAL YEAR TO MONTH
    );

INSERT INTO candidates (
    first_name,
    last_name,
    job_title,
    year_of_experience
    )
VALUES (
    'Camila',
    'Kramer',
    'SCM Manager',
    INTERVAL '10-2' YEAR TO MONTH
    );
 
COMMIT;

SELECT * FROM CANDIDATES

No hay comentarios: