Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

below is my store procedure

CREATE OR REPLACE PROCEDURE spIsUserExist IS
username VARCHAR2(50);

BEGIN
select count(*) INTO username from useraccounts where username=username;
END spIsUserExist;



my procedure is created sucessfully but when i am executing this then i am getting below
error

ORA-06550: line 1, column 21:
PLS-00103: Encountered the symbol "USER.IT" when expecting one of the following:

:= . ( @ % ;
The symbol ":=" was substituted for "USER.IT" to continue.
Posted
Comments
ArunRajendra 18-Sep-13 2:58am    
Can you post your table structure?

I don't understand the logic behind this stored procedure.

But anyway try this

SQL
CREATE OR REPLACE PROCEDURE spIsUserExist IS
t_username VARCHAR2(50);

BEGIN
select count(*) INTO t_username from useraccounts where username=username;
END spIsUserExist;
 
Share this answer
 
Comments
Pro86 18-Sep-13 4:38am    
again same error
I am using below command to excute procedure

EXEC spIsUserExist 'USER.IT';
SQL
CREATE OR REPLACE PROCEDURE spIsUserExist IS
username VARCHAR2(50) out;

BEGIN
select count(*) INTO username from om where name=username;
END spIsUserExist;

may be this one will help you
 
Share this answer
 
Comments
Pro86 18-Sep-13 5:56am    
not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900