Rameshwar.S.Soni
Rameshwar.S.Soni

Reputation: 650

Meaning of & in an insert statement

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

Answers (3)

Ashwini Raman
Ashwini Raman

Reputation: 986

& is a special character which causes the statement to wait for an input

Upvotes: 2

JoRouss
JoRouss

Reputation: 2884

They are called Input variables.

You should take a look at this article: http://www.orafaq.com/node/515

Upvotes: 4

daven11
daven11

Reputation: 3025

It's probably a sqlplus script - & is the variable substitution character

Have a look here

Upvotes: 9

Related Questions