![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Recently on an SR, Oracle asked me to run a SELECT that included bind variables named :1 and :2. Is it even possible to do that in sqlplus? The only way I know of to make it work is to change the variable names so that they start with a letter (eg :b1 and :b2). Is there a way to do it without changing the names? example: var 1 varchar2(20) exec :1 := 'abc'; That doesn't work, but this does... var b1 varchar2(20) exec :b1 := 'abc'; print b1 |
#3
| |||
| |||
|
|
On Sep 29, 11:53*am, Chuck <chuckh1958_nos... (AT) gmail (DOT) com> wrote: Recently on an SR, Oracle asked me to run a SELECT that included bind variables named :1 and :2. Is it even possible to do that in sqlplus? The only way I know of to make it work is to change the variable names so that they start with a letter (eg :b1 and :b2). Is there a way to do it without changing the names? example: var 1 varchar2(20) exec :1 := 'abc'; That doesn't work, but this does... var b1 varchar2(20) exec :b1 := 'abc'; print b1 You have to work with the one out of the set of valid variable names in sqlplus ... 1 is not legal.- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |