x

What is the significance of the & and && operators in PL SQL ?

Signficance of the operators & and && in PLSQL.? Thank you in advance.

more ▼

asked Jan 13, 2010 at 11:51 AM in Default

avatar image

OracleApprender
771 73 75 79

There is no & and && operator in plsql. Never seen before.

Jan 13, 2010 at 12:30 PM Christian13467
(comments are locked)
10|1200 characters needed characters left

3 answers: sort voted first

If you mean in SQL*Plus, then & and && are for substitution variables. If you use a single & then the value will be prompted for each time it's encountered. IF you use && then the original substitution value is used for the duration of the script

more ▼

answered Jan 13, 2010 at 12:55 PM

avatar image

HillbillyToad
1k 2 4

(comments are locked)
10|1200 characters needed characters left

The & operator means that the PL SQL block requires user input for a variable. The && operator means that the value of this variable should be the same as inputted by the user previously for this same variable.

more ▼

answered Jan 25, 2010 at 07:23 AM

avatar image

OracleApprender
771 73 75 79

(comments are locked)
10|1200 characters needed characters left

It's actually part of SQL*Plus - sort of a macro thing. Take a look at this:

SQL*Plus Helps

It allows you to - sort of - define a macro that prompts for values to be searched when you execute a particular statement.

more ▼

answered Jan 13, 2010 at 01:46 PM

avatar image

KillerDBA
1.5k 9 11 14

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x426
x22
x3

asked: Jan 13, 2010 at 11:51 AM

Seen: 11108 times

Last Updated: Jan 13, 2010 at 05:08 PM

Copyright 2016 Redgate Software. Privacy Policy