Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: What happens to this code

Re: What happens to this code

From: Mladen Gogala <mgogala.SPAM_ME.NOT_at_verizon.net>
Date: Tue, 27 Feb 2007 03:14:03 GMT
Message-ID: <%lNEh.7883$2u.6408@trndny04>


On Sun, 25 Feb 2007 09:51:27 -0800, surajkumar1 wrote:

> Examine this code:
> CREATE OR REPLACE STORED FUNCTION get_sal
> (p_raise_amt NUMBER, p_employee_id employees.employee_id%TYPE)
> RETURN NUMBER
> 1z0-147
> Leading the way in IT testing and certification tools, www.testking.com
> - 37 -
> IS
> v_salary NUMBER;
> v_raise NUMBER(8,2);
> BEGIN
> SELECT salary
> INTO v_salary
> FROM employees
> WHERE employee_id = p_employee_id;
> v_raise := p_raise_amt * v_salary;
> RETURN v_raise;
> End;
>
> What happens after execution of this code.

End of the world as we know it.

-- 
http://www.mladen-gogala.com
Received on Mon Feb 26 2007 - 21:14:03 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US