上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: 以下案例:第7行会报no_data_found 错误 declare x_out_mesg varchar2(2000); v_api_name varchar2(200); --程序名称 v_head_id number; begin select pha.po_header_id into v_ 阅读全文
posted @ 2024-04-08 15:58 Iven_lin 阅读(70) 评论(0) 推荐(0)
摘要: 在开发的过程中遇到需要把一行数据显示成N行,当时马上就想到了connect by level 这个实在太好用了 显示一行 select level rn from dual connect by level < 2; 显示二行 select level rn from dual connect by 阅读全文
posted @ 2024-04-08 15:26 Iven_lin 阅读(249) 评论(0) 推荐(0)
摘要: 今天有个同事问我能不能根据行的指定字段内容进行拆行,例如该行字段内容:2C18E570;2C18DE70 根据 分号拆出两行 数据量大时优先选用,效率非常高 一眼望穿,非常简单毕竟从事Oracle 已经10多年了,比这个更变态的需求都遇到过,归根还得要对 Connect by level 运用非常熟 阅读全文
posted @ 2024-04-08 15:05 Iven_lin 阅读(224) 评论(0) 推荐(0)
摘要: 1、场景递归到第几层,例如递归到第2层 select level, --层级 wdj.* from wip_discrete_jobs_v wdj where 1 = 1 start with wdj.wip_entity_name = '08363790' --递归开始 connect by wd 阅读全文
posted @ 2024-04-08 14:42 Iven_lin 阅读(371) 评论(0) 推荐(0)
摘要: 代码:输出内容超过10000 bytes begin for i in 1 .. 10000 loop dbms_output.put_line('i=' || i); end loop; end; 在代码增加一段:DBMS_OUTPUT.ENABLE (buffer_size=>null); be 阅读全文
posted @ 2024-04-08 14:34 Iven_lin 阅读(617) 评论(0) 推荐(0)
摘要: Oracle中的参数文件是一个包含一系列参数以及参数对应值的操作系统文件。它们是在数据库实例启动第一个阶段时候加载的, 决定了数据库的物理 结构、内存、数据库的限制及系统大量的默认值、数据库的各种物理属性、指定数据库控制文件名和路径等信息, 是进行数据库设计和性能调优的重要文件。可以分为两种类型,3 阅读全文
posted @ 2024-04-08 14:16 Iven_lin 阅读(1407) 评论(0) 推荐(0)
摘要: 查看表空间文件路径: 1、select * from dba_data_files x 备注( select name from v$datafile (数据库存放的位置)) 2、创建表空间:TBS_A 2.1 如果存在就删除:DROP tablespace tbs_a including cont 阅读全文
posted @ 2024-04-08 14:14 Iven_lin 阅读(1515) 评论(0) 推荐(0)
摘要: 查询知道供应商地址ID:1738, 物料ID:493322 ,库存组织:124 ,事务类型:74 1、物权转移与冲减数量 select sum(a.transaction_quantity) - 36208 mmt_qty, sum(b.net_qty) net_qty from (select m 阅读全文
posted @ 2024-04-08 14:10 Iven_lin 阅读(89) 评论(0) 推荐(0)
摘要: 程序头 create or replace package cux_po_mould_std_order_pub is /* copyright (c) ibm global business services allrights reserved * * program name: * cux_p 阅读全文
posted @ 2024-04-08 13:59 Iven_lin 阅读(183) 评论(0) 推荐(0)
摘要: 程序包头 create or replace package cux_ws_scs_op_pba_pub is /* * * PROGRAM NAME: * cux_ws_op_vendor_scs_pub * DESCRIPTION: * * 接口2:SCS回传PBA给EBS * HISTORY: 阅读全文
posted @ 2024-04-08 11:52 Iven_lin 阅读(251) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页