![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This doesn't work Declare bignum number ; function sqr(n number) return number is begin return n * n ; end; begin -- dbms_output.put_line(sqr(3)); select sqr(3) into bignum from dual; end; |
#3
| |||
| |||
|
|
This doesn't work Declare bignum number ; function sqr(n number) return number is begin return n * n ; end; begin -- dbms_output.put_line(sqr(3)); select sqr(3) into bignum from dual; end; |
#4
| |||
| |||
|
|
This doesn't work Declare bignum number ; function sqr(n number) return number is begin return n * n ; end; begin -- dbms_output.put_line(sqr(3)); select sqr(3) into bignum from dual; end; |
#5
| |||
| |||
|
|
Besides, your select is pointless, you can simply bignum := sqr(3); |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
You weren't asking how to use the function in a select, weren't you? |
|
You dumped your code with the remark 'This doesn't work', without even verifying yourself it *could* actually work. |
![]() |
| Thread Tools | |
| Display Modes | |
| |