|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
pl sql fle help
Hello guys, i am getting trouble in running pl/sql file,
1- i make file with this source code "abc.sql" Code:
declare v_abc number(10); begin select id into v_abc from table; end; 2- then i run this file from sql plus prompt. @abc.sql the problem is here it is not working, it shows this next line (8), as in code, there are 7 lines. so how i can run this file , and print the value of v_abc, thanks |
|
#2
|
|||
|
|||
|
please use the slash (/) at the end of your code and save it again, to print the value of any variable on the SQL prompt, use DBMS_OUTPUT.PUT_LINE package, as folllows:
declare v_abc number(10); begin select id into v_abc from table; dbms_output.put_line(v_abc); end; / before run this code please make sure that your server output is on, to turn it on use this command. SQL>SET SERVEROUTPUT ON SIZE 1000000 now run your code SQL>@abc.sql Regards, |
|
#3
|
|||
|
|||
|
thanks shafique bhai, i check it
|
|
#4
|
|||
|
|||
|
what is the use of triggers how i can use it with text fields in oracle developer
|
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > pl sql fle help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|