1.define output parameters in oracle storedprocedure.
2.execute the storedprocedure in delphi
3.use the Tstoredprocedure's method GetResults. 

解决方案 »

  1.   

    1:ProC.Parameters.ParamByName('RETURN_VALUE').Value 这个参数是自动产生的
    2.视图和表一样的操作
    3。动态SQL语句
      

  2.   

    1.在存储过程中定义返回的参数
    2.在存储过程最后写select * from viewname
      

  3.   

    1:ProC.Parameters.ParamByName('RETURN_VALUE').Value 这个参数是自动产生的
    2.视图和表一样的操作
    3。动态SQL语句
      

  4.   

    关于视图的返回,在 oracle 中返回参数如何定义,在 delphi 中如何接受,是否要使用datasource 与 dbgrid 联系在一块,我是初学者,能否做详细说明?
      

  5.   

    如下写法似乎不成文,但试验有效
    Select * from StoreProcedureName(:parem1, :Param2,...,etc);
      

  6.   

    请问alaclp(陈石):
      在oracle中,怎样定义存储过程,才能使用你说的sql语句。而且你的sql语句是在什么环境下
    执行的,是sql*plus、tQuery、Tstoredproc?
    在sql*plus中使用select * from storeprocedurename 时,提示procedure, function, package, or type is not allowed here。
    最好能给出一个小例子,包括过程的定义及调用的方法。
    我会追加分数的。急需帮忙!!!!