DECLARE
v_no NUMBER(3) := 10;
v_hireDate VARCHAR2(30) := TO_CHAR(SYSDATE, 'YYYY/MM/DD');
c_message CONSTANT VARCHAR2(50) :='hello world'
BEGIN
DBMS_OUTPUT.PUT_LINE('hello world');
DBMS_OUTPUT.PUT_LINE(c_message);
DBMS_OUTPUT.PUT_LINE(v_hireDate);
END;
DECLARE
v_no NUMBER(3) := 10;
v_hireDate VARCHAR2(30) := TO_CHAR(SYSDATE, 'YYYY/MM/DD');
c_message CONSTANT VARCHAR2(50) :='hello world';
BEGIN
DBMS_OUTPUT.PUT_LINE('hello world');
DBMS_OUTPUT.PUT_LINE(c_message);
DBMS_OUTPUT.PUT_LINE(v_hireDate);
END;
DECLARE
v_name VARCHAR2(20)
v_salary NUMBER;
v_hiredate VARCHAR2(30);
BEGINE
SELECT last_name, salary, TO_CHAR(hire_date, 'yyyy-mm-dd')
INTO v_name, v_salary, v_hiredate
FROM employees
WHERE last_name = 'Chen';
dbms_output.put_line('검색된 사원 정보');
dbms_output.put_line(v_name || ' ' || v_salary || ' ' || v_hiredate);
END;