博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
应收发票相关脚本
阅读量:5250 次
发布时间:2019-06-14

本文共 1351 字,大约阅读时间需要 4 分钟。

/* Formatted on 2018/3/15 10:20:35 (QP5 v5.256.13226.35538) */

SELECT * FROM hr_organization_units_v;                                    

 

--AR 事物处理安全性限制

BEGIN

   mo_global.set_policy_context ('S', '107');

END;

 

-- 备份事物处理

CREATE TABLE bak.RA_CUSTOMER_TRX_ALL20120619

AS

   SELECT *

     FROM RA_CUSTOMER_TRX_ALL

    WHERE TRX_NUMBER = '10102672';                                                                

   

-- 检测备份情况

SELECT * FROM bak.RA_CUSTOMER_TRX_ALL20120619;                                              

 

-- 修改事物处理

SELECT t.*, t.ROWID

  FROM RA_CUSTOMER_TRX_ALL t

 WHERE TRX_NUMBER = '10102672';

 

-- 备份事物处理行

CREATE TABLE bak.RA_CUSTOMER_TRX_LINES_all0619

AS

   SELECT *

     FROM RA_CUSTOMER_TRX_LINES_all

    WHERE CUSTOMER_TRX_ID = 978317;             --CUSTOMER_TRX_LINE_ID

   

-- 检测备份数据

SELECT * FROM bak.RA_CUSTOMER_TRX_LINES_all0619;                                                

 

-- 修改事物处理行

SELECT t.*, t.ROWID

  FROM RA_CUSTOMER_TRX_LINES_all t

 WHERE CUSTOMER_TRX_ID = 978317;             --CUSTOMER_TRX_LINE_ID

 

 

 

-- 备份应收事物处理分配行

CREATE TABLE bak.RA_CUST_TRX_LINE_GL_DIST0619

AS

   SELECT *

     FROM RA_CUST_TRX_LINE_GL_DIST

    WHERE CUSTOMER_TRX_ID = 978317;                                                                

   

-- 检测备份数据

SELECT * FROM bak.RA_CUST_TRX_LINE_GL_DIST0619;                                               

 

-- 修改应收事物处理分配行

SELECT t.*, t.ROWID

  FROM RA_CUST_TRX_LINE_GL_DIST t

 WHERE CUSTOMER_TRX_ID = 978317;

 

-- 备份应收事物处理-税行

CREATE TABLE bak.ZX_LINES20120619

AS

   SELECT *

     FROM ZX_LINES

    WHERE TRX_NUMBER = '10102672';                                                     

   

   

-- 检测备份数据

SELECT * FROM bak.ZX_LINES20120619;                                   

 

-- 修改应收事物处理-税行

SELECT t.*, t.ROWID

  FROM ZX_LINES t

 WHERE TRX_NUMBER = '10102672';

转载于:https://www.cnblogs.com/quanweiru/p/8572087.html

你可能感兴趣的文章
Python3多线程爬取meizitu的图片
查看>>
树状数组及其他特别简单的扩展
查看>>
zookeeper适用场景:分布式锁实现
查看>>
110104_LC-Display(液晶显示屏)
查看>>
httpd_Vhosts文件的配置
查看>>
php学习笔记
查看>>
普通求素数和线性筛素数
查看>>
PHP截取中英文混合字符
查看>>
【洛谷P1816 忠诚】线段树
查看>>
电子眼抓拍大解密
查看>>
poj 1331 Multiply
查看>>
tomcat7的数据库连接池tomcatjdbc的25个优势
查看>>
Html 小插件5 百度搜索代码2
查看>>
P1107 最大整数
查看>>
多进程与多线程的区别
查看>>
Ubuntu(虚拟机)下安装Qt5.5.1
查看>>
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
查看>>
java 常用命令
查看>>
CodeForces Round #545 Div.2
查看>>
卷积中的参数
查看>>