直接
select * from 生产入仓表 where 日期=输入日期 
不就行了吗?

解决方案 »

  1.   

    做报表 要么用 PLSQL Developer
    要么自己在SQL PLUS中自定义格式把
    select * from 生产入仓表 where 日期=to_date(输入日期,'YYYY/MM/DD')
      

  2.   

    如:
    select * from 生产入仓表 where to_char(日期,'yyyymmdd')=20030510 group by 物料编号;
      

  3.   

    select * from 生产入仓表 where 日期=输入日期 
    這種也要用存儲結構?
      

  4.   

    CREATE OR REPLACE PACKAGE pkg_test
    AS
       TYPE myrctype IS REF CURSOR;
    END pkg_test;
    /create procedure getrepro(p_date in date,p_rc out pkg_test.myrctype)
    as
    str varchar2(50);
    begin
    str:='select * from 生产入仓表 where trunc(日期)=trunc('||p_date||')';
    open p_rc for str;
    end;
    /
      

  5.   

    各位朋友,小弟近日正在学习oracle,由于授课教师水平不高,所以学习没有多大进展,本人想请各位朋友帮我找一些oracle的电子文档或幻灯片,以助我学习提高,小弟感激不尽.来信请发:
    [email protected]