Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> How to fix these bugs!!!
Hello all,
I am now doing a project and in which I need to use Oracle to provide a service for the users to search a company from a list of companies. In order to do this, firstly, I want to allow the users to search this by choosing the first character of a company name, e.g. "A" But there are bugs in my oracle program and I don't know how to fix them. Could you give some suggestions to me?
Thanks!
Connie
LINE/COL ERROR
14/2 PL/SQL: Statement ignored
The following is my with-bug program:
procedure fyp_scna;
end ;
/
show errors
create or replace package body newchi is
procedure fyp_scna is
cursor all_object is select * from firms f ,Co_bg c ,FileUrl u where f.co_name='A' and f.co_id=c.co_id and f.co_id=u.co_id order by f.co_name;
begin
htp.bodyopen('http://imsu11.ust.hk:9000/ar/img/t2.gif'); htp.p('The Companies with "A" as the first character:'); htp.nl; htp.tableOpen('yes'); htp.tableRowOpen; htp.tableData(htf.strong('Company Name')); htp.tableData(htf.strong('Year')); htp.tableRowClose;
htp.tableRowOpen; htp.tableData(htf.anchor(each_object.co_url,each_object.co_name)); htp.tableData(each_object.year); htp.tableRowOpen;