![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
x to be a variable? Or should I do myx := x; select * from foo where x=myx; This is in the context of a parameter name of a public function, so I don't want to do the obvious choice of renaming the variable. |
#3
| |||
| |||
|
|
x to be a variable? Or should I do myx := x; select * from foo where x=myx; This is in the context of a parameter name of a public function, so I don't want to do the obvious choice of renaming the variable. |
#4
| |||
| |||
|
|
x to be a variable? Or should I do myx := x; select * from foo where x=myx; This is in the context of a parameter name of a public function, so I don't want to do the obvious choice of renaming the variable. |
#5
| |||
| |||
|
|
x to be a variable? Or should I do myx := x; select * from foo where x=myx; This is in the context of a parameter name of a public function, so I don't want to do the obvious choice of renaming the variable. |
#6
| |||
| |||
|
|
This code will compare a column to a variable: declare myx number; begin select * from foo where x=myx; end; but suppose I have a variable with the same name as a column: declare x number; begin select * from foo where x=x; end; This will compare column x with column x, and not with the variable x, right? Is there syntax to force the rightmost x to be a variable? Or should I do myx := x; select * from foo where x=myx; This is in the context of a parameter name of a public function, so I don't want to do the obvious choice of renaming the variable. Many TIA! Mark Use a block with a label: |
#7
| |||
| |||
|
|
This code will compare a column to a variable: declare myx number; begin select * from foo where x=myx; end; but suppose I have a variable with the same name as a column: declare x number; begin select * from foo where x=x; end; This will compare column x with column x, and not with the variable x, right? Is there syntax to force the rightmost x to be a variable? Or should I do myx := x; select * from foo where x=myx; This is in the context of a parameter name of a public function, so I don't want to do the obvious choice of renaming the variable. Many TIA! Mark Use a block with a label: |
#8
| |||
| |||
|
|
This code will compare a column to a variable: declare myx number; begin select * from foo where x=myx; end; but suppose I have a variable with the same name as a column: declare x number; begin select * from foo where x=x; end; This will compare column x with column x, and not with the variable x, right? Is there syntax to force the rightmost x to be a variable? Or should I do myx := x; select * from foo where x=myx; This is in the context of a parameter name of a public function, so I don't want to do the obvious choice of renaming the variable. Many TIA! Mark Use a block with a label: |
#9
| |||
| |||
|
|
This code will compare a column to a variable: declare myx number; begin select * from foo where x=myx; end; but suppose I have a variable with the same name as a column: declare x number; begin select * from foo where x=x; end; This will compare column x with column x, and not with the variable x, right? Is there syntax to force the rightmost x to be a variable? Or should I do myx := x; select * from foo where x=myx; This is in the context of a parameter name of a public function, so I don't want to do the obvious choice of renaming the variable. Many TIA! Mark Use a block with a label: |
#10
| |||
| |||
|
|
mh (AT) pixar (DOT) com schrieb: Use a block with a label: Urs Metzger |
![]() |
| Thread Tools | |
| Display Modes | |
| |