如何在delphi中的QUERY中调用ORacle的存储过程???

lishen 2003-08-20 03:07:18
CREATE OR REPLACE PACKAGE pkg_test
AS
TYPE myrctype IS REF CURSOR;

PROCEDURE get (p_id NUMBER, p_rc OUT myrctype);
END pkg_test;
/

CREATE OR REPLACE PACKAGE BODY pkg_test
AS
PROCEDURE get (p_id NUMBER, p_rc OUT myrctype)
IS
sqlstr VARCHAR2 (500);
BEGIN
IF p_id = 0 THEN
OPEN p_rc FOR
SELECT ID, NAME, sex, address, postcode, birthday
FROM student;
ELSE
sqlstr :=
'select id,name,sex,address,postcode,birthday
from student where id=:w_id';
OPEN p_rc FOR sqlstr USING p_id;
END IF;
END get;
END pkg_test;
/

...全文
72 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ggyy2002 2003-11-10
  • 打赏
  • 举报
回复
up
微雪缤纷 2003-08-20
  • 打赏
  • 举报
回复
关注
lishen 2003-08-20
  • 打赏
  • 举报
回复
UOPUOPUPPUPUPUPUPUP
目录: 1 Uppas40.htm Delphi 4增訂的Object Pascal 19K 2 Api_printer.htm Api函数列表-与打印有关 30K 3 Autocreate.htm 在Delphi3程序自动检测、建立数据库别名 7K 4 Autoxize.htm DELPHI自适应表单的实现 3K 5 Bat.htm 在Delphi利用Tbatch组件完成数据批处理 5K 6 Bde.htm 如何在注册表注册BDE 2K 7 Bjjlb.htm Delphi编辑俱乐部 4K 8 Cgi_1.htm CGI技术及其开发 11K 9 Cgi_2.htm CGI技术及其开发(二) 12K 10 Chang_backmap.htm 用Delphi实现壁纸更换 3K 11 Change_ip_dns.htm 任何动态改变/添加网络设置的 TCP/IP 的 DNS 地址 1K 12 Colorcour.htm 让彩色光标出现在Delphi程序 2K 13 Compon_mk.htm 面向组件的系统开发方法 2K 14 Comtech.htm COM/DCOM如何传递数组 2K 15 Comvsdcom.htm COM/DCOM的区别与联系 2K 16 Cookite.htm Delphi 3Cookie的建立使用 6K 17 Copy_screen.htm 一个实用的Delphi屏幕拷贝程序的设计 11K 18 Create_oracle7.htm 开发基于ORACLE7数据库的管理信息系统 9K 19 Cs_fast.htm 提高客户机/服务器应用系统性能的一些方法 8K 20 Def_color_dlg.htm 用Delphi实现自定义颜色对话框及其构件 12K 21 Def_preview.htm 自定义快速报表的打印预览窗口 6K 22 Delete.htm 如何把文件删除到回收站 1K 23 Delphi_c.htm 在Delphi与C++之间实现函数与对象共享 7K 24 Delphi_err.htm Delphi编译错误文手册 34K 25 Delphi_net1.htm DELPHI与INTERNET 34K 26 Delphi_net2.htm DELPHI与INTERNET 46K 27 Delphi_quick_develop.htm Delphi之快速设计(程序设计篇) 8K 28 Delphi_quick_develop2.htm Delphi之快速设计(界面篇) 3K 29 Delphi23_io.htm 在DELPHI2.0/3.0直接操作端口 3K 30 Delphivspb.htm 开发AS/400应用系统PB5与Delphi3的比较 9K 31 Device_isok.htm 检查驱动器是否就绪 1K 32 Dtccw03.htm 资源文件在DELPHI的使用 10K 33 Dttray.htm 如何创建任务栏的应用程序 11K 34 Edit_sysmenu.htm 控制系统菜单 3K 35 Fix_sybase.htm 如何恢复Sybase SQL Anywhere的数据库 4K 36 Fixsysbase_in.htm 解决sybase用户数据库不能进入故障的一种方法 5K 37 From_move.htm 用Delphi实现无边界窗体的移动 3K 38 Function.htm 部分函数、命令、属性文说明 13K 39 Get_form.htm Win95/98下监控运行的其他程序 2K 40 Get_info.htm 使用Delphi获取系列信息 3K 41 Get_net_friend.htm 如何在程序动态取得Win95/98的网络邻居的工作组及计算机名 12K 42 H_sort.htm 在DELPHI用线程排序 4K 43 Happymouse.htm 用Delphi编制趣味动画鼠标 3K 44 Hint.htm 改造HINT的输出方式 5K 45 Howto_chinese_delphi.htm "Delphi之完全汉语"终结版 6K 46 If.htm Delphi数据集过滤技巧 4K 47 Img.htm Delphi下汉字输入法的编程及使用 5K 48 Index_notf.htm 怎样解决打开一个DBF表时的"Index not found.."错误 3K 49 Install.htm 如何制作Delphi程序安装盘 7K 50 Ip
网管教程 从入门到精通软件篇 ★一。★详细的xp修复控制台命令和用法!!! 放入xp(2000)的光盘,安装时候选R,修复! Windows XP(包括 Windows 2000)的控制台命令是在系统出现一些意外情况下的一种非常有效的诊断和测试以及恢复系统功能的工具。小编的确一直都想把这方面的命令做个总结,这次辛苦老范给我们整理了这份实用的秘笈。   Bootcfg   bootcfg 命令启动配置和故障恢复(对于大多数计算机,即 boot.ini 文件)。   含有下列参数的 bootcfg 命令仅在使用故障恢复控制台时才可用。可在命令提示符下使用带有不同参数的 bootcfg 命令。   用法:   bootcfg /default  设置默认引导项。   bootcfg /add    向引导列表添加 Windows 安装。   bootcfg /rebuild  重复全部 Windows 安装过程并允许用户选择要添加的内容。   注意:使用 bootcfg /rebuild 之前,应先通过 bootcfg /copy 命令备份 boot.ini 文件。   bootcfg /scan    扫描用于 Windows 安装的所有磁盘并显示结果。   注意:这些结果被静态存储,并用于本次会话。如果在本次会话期间磁盘配置发生变化,为获得更新的扫描,必须先重新启动计算机,然后再次扫描磁盘。   bootcfg /list   列出引导列表已有的条目。   bootcfg /disableredirect 在启动引导程序禁用重定向。   bootcfg /redirect [ PortBaudRrate] |[ useBiosSettings]   在启动引导程序通过指定配置启用重定向。   范例: bootcfg /redirect com1 115200 bootcfg /redirect useBiosSettings   hkdsk   创建并显示磁盘的状态报告。Chkdsk 命令还可列出并纠正磁盘上的错误。   含有下列参数的 chkdsk 命令仅在使用故障恢复控制台时才可用。可在命令提示符下使用带有不同参数的 chkdsk 命令。   vol [drive:] [ chkdsk [drive:] [/p] [/r]   参数  无   如果不带任何参数,chkdsk 将显示当前驱动器的磁盘状态。 drive: 指定要 chkdsk 检查的驱动器。 /p   即使驱动器不在 chkdsk 的检查范围内,也执行彻底检查。该参数不对驱动器做任何更改。 /r   找到坏扇区并恢复可读取的信息。隐含着 /p 参数。   注意 Chkdsk 命令需要 Autochk.exe 文件。如果不能在启动目录(默认为 %systemroot%System32)找到该文件,将试着在 Windows 安装 CD 找到它。如果有多引导系统的计算机,必须保证是在包含 Windows 的驱动器上使用该命令。 Diskpart   创建和删除硬盘驱动器上的分区。diskpart 命令仅在使用故障恢复控制台时才可用。   diskpart [ /add |/delete] [device_name |drive_name |partition_name] [size]   参数 无   如果不带任何参数,diskpart 命令将启动 diskpart 的 Windows 字符模式版本。   /add   创建新的分区。   /delete   删除现有分区。   device_name   要创建或删除分区的设备。设备名称可从 map 命令的输出获得。例如,设备名称:   DeviceHardDisk0   drive_name   以驱动器号表示的待删除分区。仅与 /delete 同时使用。以下是驱动器名称的范例:   D:   partition_name   以分区名称表示的待删除分区。可代替 drive_name 使用。仅与 /delete 同时使用。以下是分区名称的范例:   DeviceHardDisk0Partition1    大小   要创建的分区大小,以兆字节 (MB)表示。仅与 /add 同时使用。   范例   下例将删除分区: diskpart /delete Device HardDisk0 Partition3 diskpart /delete F:   下例将在硬盘上添加一个 20 MB 的分区:   diskpart /add Device HardDisk0 20   Fixboot
数据库设计,建模和部署工具BDBPro3.1-setup_EN bdb是一个功能齐全的数据库设计软件。 It supports Oracle, SQL Server, MySQL, Access, SQLAnywhere and Sybase. 它支持Oracle , SQL Server时, MySQL的访问, sqlanywhere和Sybase 。 In addition, BDB is also a great SQL Query Intellisense Tool. 在此外, bdb也是一个伟大的SQL查询的IntelliSense工具。 Main BDB features: bdb的主要特点: · Database design. 数据库设计。 Build the database model by BDB, support forward-engineering and reverse-engineering, 建立数据库,模型bdb ,支持前瞻性的工程和逆向工程, and the comparison update and double-way synchronization between the database model 和比较,更新和双程之间的同步数据库模型 and the entity database. 和实体数据库。 · Database deployment 数据库部署 Create the program of the database deployment by BDB. 创建程序数据库部署bdb 。 Besides the normal envocation, BDB supply the support of outer command line invoking the database auto-installation. 除了正常的envocation , bdb供应的支持外的命令行援引该数据库的自动安装。 · Database auto-update. 数据库自动更新。 Carry out the database auto-update without affecting the data of the original table. 进行数据库的自动更新而不影响数据的原始表。 In addition, you can carry out the database auto-update deployment quickly and conveniently. 此外,您还可以进行数据库的自动更新部署方便快捷。 The only thing you need to do is to update the resource file automatically generated by BDB. 唯一的事,你需要做的就是更新资源文件自动生成bdb 。 · Database migration. 数据库迁移。 Supply a complete database migration schedule. 供应一个完整的数据库迁移时间表。 You can carry out migration across the database platforms. 您可以进行迁移整个数据库平台。 The objects that can be migrated include tables, indexes, constraints, default values, triggers, 对象可以迁移,包括表,索引,约束,默认值,触发器, views, procedures, functions and the table data. 的意见,程序,职能和表数据。 · Inquiry analysis 调查分析 The function of the database' rapid inquiry analysis allow you to carry out the operation of 功能数据库的快速调查分析,让您进行运作 the table data inquiry, edition and deriving-out: 表的数据查询,并从版指出: 1. 1 。 supply special SQL editor, and support grammar highlight and script pre-definition. 供应特别SQL编辑器,并支持语法突出和脚本前的定义。 2. 2 。 support script rapid choice and input. 支持脚本快速的选择和投入。 3. 3 。 supply uniform rapid inquiry grammars support (such as "DESC")under different database platforms. 供应制服快速查询语法的支持(如“递减” ) ,根据不同的数据库平台。 · SQL script pre-view SQL 脚本预先查看 If there is some changes in the database model or the entity database, you can output and update SQL 如果有一些变化,数据库模型或实体的资料库,您可以输出和更新SQL in advance and preview the database rebuilding SQL script. 在推进和预览数据库重建SQL脚本。 · Support across the database platforms 支持跨数据库平台 You can design the database only according to the database platform that you are familiar with. 您可以设计数据库,只有根据该数据库平台您熟悉。 When you apply it to other database platforms, the system will transform the data type and deal with the grammar 当你将它应用于其他数据库平台,该系统将变换的数据类型和处理与语法 differences under different database platforms. 分歧下,不同的数据库平台。 · Adopt the scheme pattern 采用计划模式 Support and carry out multi-database management. 支持和进行多数据库管理。 · Support the definition and synchronization of reusable attributes. 支持的定义和同步的可重复使用的属性。 · Development languages support 开发语言支持 Opened database physical structure file format(XML standard format). 打开数据库的物理结构文件格式( XML标准格式) 。 Supply the source program of the outer invocation database, 供应来源计划外的调用数据库, including these three edition: C#/Delphi/JAVA. 包括这三个版本: C #/德尔福/ Java的。 · Support multi-languange 支持多语言 New language pack can be added according to your need. 新的语言包可以添加根据您的需要。

1,593

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 网络通信/分布式开发
社区管理员
  • 网络通信/分布式开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧