deference between & and &&
Answers were Sorted based on User's Feedback
Both of these are substitution variable adn difference
between & and &&:
&--->the variable prefixed with an ampersand (&) to
prompt the user for a value.
eg:
SELECT employee_id, last_name, salary, department_id
FROM employees
WHERE employee_id = &employee_num ;
It should prompt the user to enter a value for employee_num
&&--->Mainly we used the double-ampersand (&&) if you want
to reuse the variable value without prompting the user each
time.
eg:SELECT employee_id, last_name, job_id, &&column_name
FROM employees
ORDER BY &column_name;
Here the user is asked to give the value for variable
column_name only once. The
value supplied by the user (department_id) is used both for
display and ordering of data.
| Is This Answer Correct ? | 28 Yes | 1 No |
Answer / fahad
&-it is used in run time.it ask d value as new and old value
&&-it repeats the duplicacy and it repeat d same output..
ex.single ampersent...
select employee_id,last_name,hire_date,salary from employees
where department_id=&department_id;
when u enter dis statement.
in output it vil ask d value..
enter value for department_id=
query for &&..
select employee_id,last_name,hire_date,salary from employees
where department_id=&&department_id;
| Is This Answer Correct ? | 7 Yes | 6 No |
Whats the purpose of using Nextval while creating the sequence.
What is the architectural difference between Oracle and SQL Server 2000? If I have 100 databases, how many instances get created when you use Oracle and how many get created when you use SQL Server?
Name two files used for network connection to a database.
What are the standard concurent programs for auto invoice interface and customer interfaces? : oracle accounts receivable
How do you switch from an init.ora file to a spfile?
I am working in Oracle Clinical 4.5.1 Please explain a bit.How to create Views in OC
Where in the Oracle directory tree structure are audit traces placed?
I would like to study certification course in Data base adminidtrator then where would i go to study this course?
I have 3+ Years experience HR with Technical Recruitment Industry. Now i would like to learn oracle HRMS Models of all aspect. please suggest any one, which institution is best for oracle HRMS practical with real time teaching in Chennai, Tamilnadu. What are the basic stat up to learn Oracle HRMS with Core strongly?
Differentiate between unidentified receipt, unapplied receipts and on account receipts? : oracle accounts receivable
statement string in open is null or 0 length ORA-40735
what are the interface and api table for receipts conversion in oracle receivables? : oracle accounts receivable