Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to view variable and constant value

715920Aug 25 2009 — edited Aug 25 2009
Hi there,
I try to view a variable in sql plus command line and oracle xe object browser. The following is a small code to assign a value to a variable from an existing column name id that has value 4567 from table airplane. I'm a newbie, so pardon my ignorance:

declare new_num number;
begin
select id into new_num from airplane where id=4567;
end;
/

Questions:
1. Anything wrong with the code?
2. How can I view it via sql plus command line?
3. Can I view it from Oracle XE object browser gui?

Regards,
Valerie
This post has been answered by 548849 on Aug 25 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 22 2009
Added on Aug 25 2009
8 comments
865 views