IAS的PL/SQL WEB开发问题 急在线等候 是不是在网页中,若是可以用表单提交的方式传给下个页面呀 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个问题不好解决,同意楼上的,或者避免出现页面转换,比如弹个新窗口, 问题解决了以下是代码create or replace procedure sample4(auth_birthdate in varchar2 default null)iscursor auths_cur isselect author_code,name,sex,birthdate,postcode,salary from auths where to_char(birthdate,'MON')=auth_birthdate;c_code varchar2(10) default null;a varchar2(10) default null;begin htp.PRINT('<html><head>'); htp.TITLE('根据条件进行查询'); htp.PRINT('</head><body>'); htp.PRINT('<body background="e:\text\psp\BACKGRND.GIF" text="#000088" link="#bb0000" vlink="#bb0000">'); htp.IMG('e:\text\psp\PAINT.GIF'); htp.p('=='||auth_birthdate||'=='); htp.TABLEOPEN('border'); htp.tablerowopen; htp.tableheader('author_code'); htp.tableheader('name'); htp.tableheader('sex'); htp.tableheader('birthdate'); htp.tableheader('postcode'); htp.tableheader('salary'); htp.TABLErowCLOSE; for cur in auths_cur loop htp.tablerowopen; htp.tabledata(cur.author_code); htp.tabledata(cur.name); htp.tabledata(cur.sex); htp.tabledata(cur.birthdate); htp.tabledata(cur.postcode); htp.tabledata(cur.salary); htp.tablerowclose; end loop; htp.tableclose;htp.LINE; htp.PARA; htp.P('本例中查询某月内出生的作者信息<br>并将结果以<b>TABLE</b>格式返回'); htp.PARA; htp.P('请先选择某个月份,然后点取"提交"按钮查询'); htp.P('<h4>请选择某个月份:</h4>'); htp.FORMOPEN('http://comeback/pls/dcw/sample4'); htp.FORMSELECTOPEN('auth_birthdate'); c_code :=auth_birthdate; for i in 1..12 loop a:=i || '月'; if a=c_code then htp.formselectoption( a,'a','value="a"'); else htp.formselectoption( a); end if; end loop; htp.FORMSELECTCLOSE; htp.FORMSUBMIT(cvalue=>'提交'); htp.FORMRESET(cvalue=>'重置'); htp.LINE; htp.address('(c)2002大连COMEBACK数据工程有限公司'); htp.P('</body>'); htp.P('</html>');end; 一个sql子查询的问题 如何让oracle job定时调用一个有参的存储过程? ora-04031报错,请帮忙看看。 关于JOB执行的一点疑问 安装Oracle817时候出现的问题 如何导入一个用sys用户导出的全数据库类型的dmp 或如何查看老贴 请问oracle的日期型字段,占用空节是多大?几个比特? 我怎样才能找到导入oracle 9i的表啊? 用PRO*C 做Oracle 数据库应用开发本地必须装 oracle 数据库服务器吗? 关于连接的问题,恳请大家帮忙,谢谢了 pl/sql中读文件内容的问题???? 关于一个.sql中多个触发器和包的问题
或者避免出现页面转换,比如弹个新窗口,
create or replace procedure sample4(auth_birthdate in varchar2 default null)
is
cursor auths_cur is
select author_code,name,sex,birthdate,postcode,salary from
auths where to_char(birthdate,'MON')=auth_birthdate;
c_code varchar2(10) default null;
a varchar2(10) default null;
begin
htp.PRINT('<html><head>');
htp.TITLE('根据条件进行查询');
htp.PRINT('</head><body>');
htp.PRINT('<body background="e:\text\psp\BACKGRND.GIF" text="#000088"
link="#bb0000" vlink="#bb0000">');
htp.IMG('e:\text\psp\PAINT.GIF');
htp.p('=='||auth_birthdate||'==');
htp.TABLEOPEN('border');
htp.tablerowopen;
htp.tableheader('author_code');
htp.tableheader('name');
htp.tableheader('sex');
htp.tableheader('birthdate');
htp.tableheader('postcode');
htp.tableheader('salary');
htp.TABLErowCLOSE;
for cur in auths_cur loop
htp.tablerowopen;
htp.tabledata(cur.author_code);
htp.tabledata(cur.name);
htp.tabledata(cur.sex);
htp.tabledata(cur.birthdate);
htp.tabledata(cur.postcode);
htp.tabledata(cur.salary);
htp.tablerowclose;
end loop;
htp.tableclose;
htp.LINE;
htp.PARA;
htp.P('本例中查询某月内出生的作者信息<br>并将结果以<b>TABLE</b>格式返回');
htp.PARA;
htp.P('请先选择某个月份,然后点取"提交"按钮查询');
htp.P('<h4>请选择某个月份:</h4>');
htp.FORMOPEN('http://comeback/pls/dcw/sample4');
htp.FORMSELECTOPEN('auth_birthdate');
c_code :=auth_birthdate;
for i in 1..12 loop
a:=i || '月';
if a=c_code then
htp.formselectoption( a,'a','value="a"');
else
htp.formselectoption( a);
end if;
end loop;
htp.FORMSELECTCLOSE;
htp.FORMSUBMIT(cvalue=>'提交');
htp.FORMRESET(cvalue=>'重置');
htp.LINE;
htp.address('(c)2002大连COMEBACK数据工程有限公司');
htp.P('</body>');
htp.P('</html>');
end;