Reputation: 650
Suppose i am having a table employee with 2 columns emp_ID and e_name and i normally insert the rows in the table as "insert into employee values('some_value', 'some_vale')" but somewhere i saw the insert statement as "insert into employee(&emp_ID, '&e_name')" emp_ID is number type and e_name of varchar. MY QUESTION: what is the use of & in insert statement?
Upvotes: 3
Views: 231
Reputation: 986
& is a special character which causes the statement to wait for an input
Upvotes: 2
Reputation: 2884
They are called Input variables.
You should take a look at this article: http://www.orafaq.com/node/515
Upvotes: 4
Reputation: 3025
It's probably a sqlplus script - & is the variable substitution character
Upvotes: 9