473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

need output without using dbms_output package

1 declare 2x1 number;
3 begin 4x1 :=5;
5 declare 6x2 number ;
7 begin 8x2 :=6;
9 x1:=x2 ;
10 end;
11 x2 := X1 ;
12 * end;
13 / x2 :=X1;
*error at line 11:ORA-06550 :line 11,column 1:PLS-00201: identifier 'X2' must be declared ORA-06550:line 11,column1: PL/SQL:statement ignored while executing the above nested block, getting the error as"identifier 'X2' must be declared".without declaring the variables inside the block how can u use the variable.Also i want to view the output of that variable without using DBMS_OUTPUT package.
Sep 23 '08 #1
2 1883
Dave44
153 100+
this is hard to reply to. You need to grab a book and get some of the fundamental PL/SQL syntax learned. variables need to be declared and if the scope of a variable is beyond the inner block then declare it in the outer block.
Sep 25 '08 #2
debasisdas
8,127 Expert 4TB
if you do not want to use DBMS_OUTPUT , you need to define your own procedure for that purpose.
Sep 25 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Tom Urbanowicz | last post by:
I have a table with 100+ columns, for which I'm trying to retrieve only 1 specific record. For this single record, I do not know which of the columns are NULL, and which are populated. I would...
0
by: KVN Chary | last post by:
I'm facing one problem with Varrays. I have to use Varrays as input and output parameters in a procedure. When I assign a value to Varray, Oracle errored out as and asking for Initialize the...
7
by: Ben Bean | last post by:
Yes, the online documentation is EXcellent! So I will be using the php.exe in command line mode VERY SOON! I will readily pick up on ALL of the wonderful ways to parse an input file and send output...
1
by: simonalexander | last post by:
I have got a homework task to do and I have started the work but I cannot finish it.Can someone please help me finish the code. The help given is much appreciated. The actual specifications are...
1
by: ashokakr | last post by:
Hi all declare cnt integer; begin cnt=5; dbms_output.put_line(cnt); end;
3
by: eeriehunk | last post by:
Hi, I wrote a shell script where I connect to an oracle db(the connection works because I able to see the DBMS output) and I execute a procedure, but I am not able to get the return value from...
3
by: wdandrews1 | last post by:
/* Remove.c ** Usage: remove < In_file Out_file (using redirection) */ #include <stdio.h> #include <stdlib.h> int main(void) { char c; int space = 0;
2
by: geebanga88 | last post by:
Hi was wondering if you are allowed to output a group function such as SUM from a cursor. For example: DECLARE cursor customer_total_owing IS SELECT c_first, c_last,...
3
by: oravm | last post by:
Hi, I re-write a query and used bulk collect to improve the performance of the batch process. The query below has NO compile error but when execute query there is error 'ORA-01403: no data...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.