GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 187 of 241    Print  
What is the disadvantage of out paramter in functions

  
Total Answers and Comments: 3 Last Update: February 19, 2008     Asked by: Sushma 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: g_sidhu
 
We cant use functions with OUT parameter in sql statements because there is no way for you to declare a variable in a SQL query and in order to call an IN OUT -- you need a local variable (to supply a value to be read from and to supply a place to put the out value into).

Above answer was rated as good by the following members:
rethishr, ratna82, ds_devi, kperumal75
July 05, 2007 03:02:52   #1  
rajeev369        

RE: What is the disadvantage of out paramter in functi...
You can't call a function without parameter within select statement.
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 3Overall Rating: -3    
September 26, 2007 11:25:04   #2  
ramaswamy        

RE: What is the disadvantage of out paramter in functi...
Functions with out parameters cannot be used in SQL statments however I disagree with you rajeev because functions without parameters can also be called in select statments as long as they havea return() (Eg: SYSDATE)
 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 1Overall Rating: +1    
February 19, 2008 16:18:21   #3  
g_sidhu Member Since: August 2007   Contribution: 122    

RE: What is the disadvantage of out paramter in functions
We cant use functions with OUT parameter in sql statements because there is no way for you to declare a variable in a SQL query and in order to call an IN OUT -- you need a local variable (to supply a value to be read from and to supply a place to put the out value into).
 
Is this answer useful? Yes | NoAnswer is useful 3   Answer is not useful 1Overall Rating: +2    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape