728x90 반응형 oracle if1 oracle sql (1)variable month_sal number;declarev_sal number(8) :=1800;begin:month_sal :=v_sal/12;end;/print month_sal;---------------------------------(2)set serveroutput oned d:\test1.sqldeclare v_sal number(8) :=3000;month_sal number(8);beginmonth_sal :=v_sal/12;dbms_output.put_line('내 급여는'||to_char(month_sal));end;/set serveroutput on@test1.sql (3)declarev_deptno dept.deptno%type;v_dname dept.dname%type.. 2015. 9. 28. 이전 1 다음 728x90 반응형