![]() |
Pl/sql
hi guys
how are you?? i am coding for project and i got errors but i don't know what is the wrong?? here is the code :
set serveroutput onthis is the error: (h00019852_depid :=departments.department_id%type; * ERROR at line 2: ORA-06550: line 2, column 17: PLS-00103: Encountered the symbol "=" when expecting one of the following: constant exception <an identifier> <a double-quoted delimited-identifier> table LONG_ double ref char time timestamp interval date binary national character nchar The symbol "<an identifier>" was substituted for "=" to continue. ) ========================================================== and this too :
set serveroutput onand this is the error for code (h00019852_depid Number:= employees.department_id%type; * ERROR at line 2: ORA-06550: line 2, column 50: PLS-00208: identifier 'TYPE' is not a legal cursor attribute ORA-06550: line 2, column 17: PL/SQL: Item ignored ORA-06550: line 8, column 7: PL/SQL: ORA-00904: "DEPARTMENTS"."DEPARTMENT_ID": invalid identifier ORA-06550: line 6, column 1: PL/SQL: SQL Statement ignored ORA-06550: line 10, column 81: PLS-00201: identifier 'DEPID' must be declared ORA-06550: line 10, column 1: PL/SQL: Statement ignored ) could you help me, please?! |
Re: Pl/sql
thank you guys for helping me
|
Re: Pl/sql
You're problem is this line.
h00019852_depid :=departments.department_id%type; This is not how you properly state the variable type in PL/SQL. This way is more accurate.... h00019852_depid departments.department_id%type; Considering you have a table named departments with a field named department_id. |
Re: Pl/sql
could somebody check this code for me?
:
declare i get this error old 8: where last_name=&h00019852_gv_empname; new 8: where last_name=Pataballa; ERROR: ORA-01756: quoted string not properly terminated |
| All times are GMT -5. The time now is 4:25 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC