Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> host variables vs bind variables

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: host variables vs bind variables
 shwets  Posted: Jul 19, 2007 07:52:09 AM

 Total Post: 1
 Joined: Aug, 2006






 hii,

can any body tell me what is the difference between host variables and bind variables

thank you.

 prasad
Posted: Jul 19, 2007 09:21:22 AM  

 Total Post: 35
 Joined: Jan, 2007






 
Hi

I dont know eaxctly the diff between bind & host variables....I just looked on the net...see if it it useful to u.

http://www.dbasupport.com/forums/showthread.php?t=9423

Thanx



 Nehru
Posted: Jul 26, 2007 08:31:31 AM  

 Total Post: 46
 Joined: Jul, 2007






 
Hi

HOST VARIABLES:
Host variables are the key to communication between your host program and Oracle. Typically, a precompiler program inputs data
from a host variable to Oracle, and Oracle outputs data to a host variable in the program. Oracle stores input data in
database columns, and stores output data in program host variables.

AND

BIND VARIABLES:
A host variable can be any arbitrary C expression that resolves to a scalar type. But, a host variable must also be an lvalue.
Bind variables are used in SQL and PL/SQL statements for holding
data or result sets.
They are commonly used in SQL statements to optimize statement perrformance.
A statement with a bind variable may be re-executed multiple times without needing to be re-parsed.
Their values can be set and referenced in PL/SQL blocks.
They can be referenced in SQL statements
bind variable references should be prefixed with a colon

I Know This Much
Take Care
Bye
Nehru

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Vinoth Kumar357
  Gopu Gopi340
  Gitesh Trivedi322
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software