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 |
Send this thread to your friend |
|
|
|
|
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 Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Vinoth Kumar | 357 |
| Gopu Gopi | 340 |
| Gitesh Trivedi | 322 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|