473,378 Members | 1,449 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,378 software developers and data experts.

identifier must be declared

hi experts! i have a code here but it not working. i am getting an error of "identifier SCOTT.EMP_INFO must be declared", 'SQl statement ignored". but SCOTT.EMP_INFO is a table.

here's the code:

declare
mess number;
v_empid number(25);
v_lname varchar2(100);
v_end date;



begin

if :emp_info1.emp_id is not null then

select emp_id, lname ||','||' '||fname||' '||substr(mname,1,1)||'.'
into v_empid,v_lname
from scott.emp_info

where emp_id= :emp_info.emp_id;

if v_empid is not null then

insert into scott.payroll(emp_id,
lname,
end_payroll)

VALUES (v_empid,
v_lname,
sysdate);

:system.message_level := 25;

go_block('payroll');


set_block_property('payroll',default_where, 'emp_id = :emp_info1.emp_id');
execute_query;



end if;
end if;

end;
Mar 11 '07 #1
1 10653
vijaydiwakar
579 512MB
Do u have emp_info1 ?
if not then erase 1 from that and try to run it
Mar 12 '07 #2

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

Similar topics

3
by: Marc W | last post by:
Hello, I am trying to write some code, I get a compiler error, but the help about it is very limited. (I am working with MSVC++ 6.0.) Could you give me a hint what is wrong here please? ...
1
by: Richard Anderson | last post by:
I am having problems getting procedure to execute that is part of a package (actually any of the procedures/functions that are part of this package). I've extracted out one of the procedures and...
20
by: Lars Eighner | last post by:
I believe it was here that I recently saw a discussion that pointed out that the language in the public identifier of a DTD referes to the language in which the DTD is written and has no bearing...
7
by: Kobu | last post by:
The code below isn't compiling for me (error message: conflicting types for 'total' - pointing to the extern declaration). Why wouldn't this work, since the types are different, the extern...
1
by: bmassey | last post by:
Hi, Was wondering if anyone could help me with this odd error: Am working in VS.Net Framework 1.1 C++. I had a function defined as void colorizeImage(). I decided I didn't need that function...
4
by: Stephen Corey | last post by:
I've got 2 classes in 2 seperate header files, but within the same namespace. If I use a line like: // This code is inside Class2's header file Class1 *newitem = new Class1(param1, param2); ...
2
by: aarthi28 | last post by:
Hi, I have this code that I am trying to compile, but I am getting the following errors 'CoInitializeSecurity': identifier not found 'EOAC_NONE' : undeclared identifier I have pasted the...
1
by: sravankumar | last post by:
Hi, I am trying to execute Stored Procedure that is in the other user. Geting the "PLS-00201:identifier' <User>.<Procedure Name> ' must be declared" . what are the pre requsites to access the...
0
by: kudruu | last post by:
Hi, I was trying to compile some code and I am getting a "Function identifier not found" error. I can't figure out why since the function that it claims is not identified is very clearly laid...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.