总账追朔各模块SQL
SELECT gjh.set_of_books_id,
gjl.je_line_num,
mta.organization_id,
ood.organization_code,
ood.organization_name,
mtt.transaction_type_name,
NULL trx_number,
to_char(ooh.order_number) trx_source,
trunc(mmt.transaction_date) transaction_date,
gcc.concatenated_segments account,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
1, nvl(mta.transaction_value, mta.base_transaction_value), 0, 0,
NULL)) entered_dr1,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
-1,
(-1 * nvl(mta.transaction_value, mta.base_transaction_value)),
NULL)) entered_cr1,
SUM(decode(sign(mta.base_transaction_value), 1,
mta.base_transaction_value, 0, 0, NULL)) accounted_dr1,
SUM(decode(sign(mta.base_transaction_value), -1,
(-1 * mta.base_transaction_value), NULL)) accounted_cr1,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1,
nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_cr,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1, mta.base_transaction_value,
0)) accounted_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * mta.base_transaction_value, 0)) accounted_cr
FROM gl_je_lines gjl,
gl_je_headers gjh,
gl_code_combinations_kfv gcc,
gl_import_references gir,
gl_period_statuses gps,
mtl_transaction_accounts mta,
mtl_material_transactions mmt,
mtl_transaction_types mtt,
org_organization_definitions ood,
oe_order_lines_all ool,
oe_order_headers_all ooh
WHERE gjl.je_header_id = gjh.je_header_id AND
gjl.code_combination_id = gcc.code_combination_id AND
gjl.je_header_id = gir.je_header_id AND
gjl.je_line_num = gir.je_line_num AND
gjh.set_of_books_id = gps.set_of_books_id AND
gjh.period_name = gps.period_name AND gps.application_id = 401 AND
gir.reference_1 = mta.gl_batch_id AND
gjl.code_combination_id = mta.reference_account AND
mta.transaction_date BETWEEN gps.start_date AND gps.end_date AND
mta.transaction_id = mmt.transaction_id AND
mmt.transaction_type_id = mtt.transaction_type_id AND
mmt.organization_id = ood.organization_id AND
--
mtt.transaction_type_name = 'Sales Order Pick' AND
ooh.header_id = ool.header_id AND ool.line_id = mmt.trx_source_line_id AND
--
gjh.je_source = 'Inventory' AND gjh.je_category = 'MTL' AND
--
gjh.period_name = '06-2004' AND gjh.set_of_books_id = 1 AND
gjh.je_header_id = 3148
GROUP BY gjh.set_of_books_id,
mta.organization_id,
ood.organization_code,
ood.organization_name,
gjl.je_line_num,
trunc(mmt.transaction_date),
ooh.order_number,
mtt.transaction_type_name,
gcc.concatenated_segments
UNION ALL
SELECT gjh.set_of_books_id,
gjl.je_line_num,
mta.organization_id,
ood.organization_code,
ood.organization_name,
mtt.transaction_type_name,
wnd.NAME trx_number,
to_char(ooh.order_number) trx_source,
trunc(mmt.transaction_date) transaction_date,
gcc.concatenated_segments account,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
1, nvl(mta.transaction_value, mta.base_transaction_value), 0, 0,
NULL)) entered_dr1,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
-1,
(-1 * nvl(mta.transaction_value, mta.base_transaction_value)),
NULL)) entered_cr1,
SUM(decode(sign(mta.base_transaction_value), 1,
mta.base_transaction_value, 0, 0, NULL)) accounted_dr1,
SUM(decode(sign(mta.base_transaction_value), -1,
(-1 * mta.base_transaction_value), NULL)) accounted_cr1,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1,
nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_cr,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1, mta.base_transaction_value,
0)) accounted_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * mta.base_transaction_value, 0)) accounted_cr
FROM gl_je_lines gjl,
gl_je_headers gjh,
gl_code_combinations_kfv gcc,
gl_import_references gir,
gl_period_statuses gps,
mtl_transaction_accounts mta,
mtl_material_transactions mmt,
mtl_transaction_types mtt,
org_organization_definitions ood,
oe_order_lines_all ool,
wsh_new_deliveries wnd,
oe_order_headers_all ooh
WHERE gjl.je_header_id = gjh.je_header_id AND
gjl.code_combination_id = gcc.code_combination_id AND
gjl.je_header_id = gir.je_header_id AND
gjl.je_line_num = gir.je_line_num AND
gjh.set_of_books_id = gps.set_of_books_id AND
gjh.period_name = gps.period_name AND gps.application_id = 401 AND
gir.reference_1 = mta.gl_batch_id AND
gjl.code_combination_id = mta.reference_account AND
mta.transaction_date BETWEEN gps.start_date AND gps.end_date AND
mta.transaction_id = mmt.transaction_id AND
mmt.transaction_type_id = mtt.transaction_type_id AND
mmt.organization_id = ood.organization_id AND
--
mtt.transaction_type_name = 'Sales order issue' AND
mmt.shipment_number = wnd.delivery_id AND ooh.header_id = ool.header_id AND
ool.line_id = mmt.trx_source_line_id AND
--
gjh.je_source = 'Inventory' AND gjh.je_category = 'MTL' AND
--
gjh.period_name = '06-2004' AND gjh.set_of_books_id = 1 AND
gjh.je_header_id = 3148
GROUP BY gjh.set_of_books_id,
mta.organization_id,
ood.organization_code,
ood.organization_name,
gjl.je_line_num,
trunc(mmt.transaction_date),
ooh.order_number,
wnd.NAME,
mtt.transaction_type_name,
gcc.concatenated_segments
UNION ALL
SELECT gjh.set_of_books_id,
gjl.je_line_num,
mta.organization_id,
ood.organization_code,
ood.organization_name,
mtt.transaction_type_name,
rsh.receipt_num trx_number,
pha.segment1 trx_source,
trunc(mmt.transaction_date) transaction_date,
gcc.concatenated_segments account,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
1, nvl(mta.transaction_value, mta.base_transaction_value), 0, 0,
NULL)) entered_dr1,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
-1,
(-1 * nvl(mta.transaction_value, mta.base_transaction_value)),
NULL)) entered_cr1,
SUM(decode(sign(mta.base_transaction_value), 1,
mta.base_transaction_value, 0, 0, NULL)) accounted_dr1,
SUM(decode(sign(mta.base_transaction_value), -1,
(-1 * mta.base_transaction_value), NULL)) accounted_cr1,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1,
nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_cr,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1, mta.base_transaction_value,
0)) accounted_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * mta.base_transaction_value, 0)) accounted_cr
FROM gl_je_lines gjl,
gl_je_headers gjh,
gl_code_combinations_kfv gcc,
gl_import_references gir,
gl_period_statuses gps,
mtl_transaction_accounts mta,
mtl_material_transactions mmt,
mtl_transaction_types mtt,
org_organization_definitions ood,
rcv_transactions rt,
rcv_shipment_headers rsh,
po_headers_all pha
WHERE gjl.je_header_id = gjh.je_header_id AND
gjl.code_combination_id = gcc.code_combination_id AND
gjl.je_header_id = gir.je_header_id AND
gjl.je_line_num = gir.je_line_num AND
gjh.set_of_books_id = gps.set_of_books_id AND
gjh.period_name = gps.period_name AND gps.application_id = 401 AND
gir.reference_1 = mta.gl_batch_id AND
gjl.code_combination_id = mta.reference_account AND
mta.transaction_date BETWEEN gps.start_date AND gps.end_date AND
mta.transaction_id = mmt.transaction_id AND
mmt.transaction_type_id = mtt.transaction_type_id AND
mmt.organization_id = ood.organization_id AND
--
mtt.transaction_type_name IN ('PO Receipt', 'PO Rcpt Adjust') AND
rt.transaction_id = mmt.rcv_transaction_id AND
rt.shipment_header_id = rsh.shipment_header_id AND
rt.po_header_id = pha.po_header_id AND
--
gjh.je_source = 'Inventory' AND gjh.je_category = 'MTL' AND
--
gjh.period_name = '06-2004' AND gjh.set_of_books_id = 1 AND
gjh.je_header_id = 3148
GROUP BY gjh.set_of_books_id,
mta.organization_id,
ood.organization_code,
ood.organization_name,
gjl.je_line_num,
trunc(mmt.transaction_date),
rsh.receipt_num,
pha.segment1,
mtt.transaction_type_name,
gcc.concatenated_segments
UNION ALL
SELECT gjh.set_of_books_id,
gjl.je_line_num,
mta.organization_id,
ood.organization_code,
ood.organization_name,
mtt.transaction_type_name,
to_char(mmt.transaction_set_id) trx_number,
mmt.subinventory_code trx_source,
trunc(mmt.transaction_date) transaction_date,
gcc.concatenated_segments account,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
1, nvl(mta.transaction_value, mta.base_transaction_value), 0, 0,
NULL)) entered_dr1,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
-1,
(-1 * nvl(mta.transaction_value, mta.base_transaction_value)),
NULL)) entered_cr1,
SUM(decode(sign(mta.base_transaction_value), 1,
mta.base_transaction_value, 0, 0, NULL)) accounted_dr1,
SUM(decode(sign(mta.base_transaction_value), -1,
(-1 * mta.base_transaction_value), NULL)) accounted_cr1,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1,
nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_cr,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1, mta.base_transaction_value,
0)) accounted_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * mta.base_transaction_value, 0)) accounted_cr
FROM gl_je_lines gjl,
gl_je_headers gjh,
gl_code_combinations_kfv gcc,
gl_import_references gir,
gl_period_statuses gps,
mtl_transaction_accounts mta,
mtl_material_transactions mmt,
mtl_transaction_types mtt,
org_organization_definitions ood
WHERE gjl.je_header_id = gjh.je_header_id AND
gjl.code_combination_id = gcc.code_combination_id AND
gjl.je_header_id = gir.je_header_id AND
gjl.je_line_num = gir.je_line_num AND
gjh.set_of_books_id = gps.set_of_books_id AND
gjh.period_name = gps.period_name AND gps.application_id = 401 AND
gir.reference_1 = mta.gl_batch_id AND
gjl.code_combination_id = mta.reference_account AND
mta.transaction_date BETWEEN gps.start_date AND gps.end_date AND
mta.transaction_id = mmt.transaction_id AND
mmt.transaction_type_id = mtt.transaction_type_id AND
mmt.organization_id = ood.organization_id AND
--
mtt.transaction_type_name IN
('Subinventory Transfer', 'Move Order Transfer', 'Physical Inv Adjust',
'富通子库存转移') AND
--
gjh.je_source = 'Inventory' AND gjh.je_category = 'MTL' AND
--
gjh.period_name = '06-2004' AND gjh.set_of_books_id = 1 AND
gjh.je_header_id = 3148
GROUP BY gjh.set_of_books_id,
mta.organization_id,
ood.organization_code,
ood.organization_name,
gjl.je_line_num,
mmt.transaction_set_id,
mmt.subinventory_code,
trunc(mmt.transaction_date),
mtt.transaction_type_name,
gcc.concatenated_segments
UNION ALL SELECT gjh.set_of_books_id,
gjl.je_line_num,
mta.organization_id,
ood.organization_code,
ood.organization_name,
mtt.transaction_type_name,
NULL trx_number,
mmt.transaction_source_name trx_source,
trunc(mmt.transaction_date) transaction_date,
gcc.concatenated_segments account,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
1, nvl(mta.transaction_value, mta.base_transaction_value), 0, 0,
NULL)) entered_dr1,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
-1,
(-1 * nvl(mta.transaction_value, mta.base_transaction_value)),
NULL)) entered_cr1,
SUM(decode(sign(mta.base_transaction_value), 1,
mta.base_transaction_value, 0, 0, NULL)) accounted_dr1,
SUM(decode(sign(mta.base_transaction_value), -1,
(-1 * mta.base_transaction_value), NULL)) accounted_cr1,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1,
nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_cr,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1, mta.base_transaction_value,
0)) accounted_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * mta.base_transaction_value, 0)) accounted_cr
FROM gl_je_lines gjl,
gl_je_headers gjh,
gl_code_combinations_kfv gcc,
gl_import_references gir,
gl_period_statuses gps,
mtl_transaction_accounts mta,
mtl_material_transactions mmt,
mtl_transaction_types mtt,
org_organization_definitions ood
WHERE gjl.je_header_id = gjh.je_header_id AND
gjl.code_combination_id = gcc.code_combination_id AND
gjl.je_header_id = gir.je_header_id AND
gjl.je_line_num = gir.je_line_num AND
gjh.set_of_books_id = gps.set_of_books_id AND
gjh.period_name = gps.period_name AND gps.application_id = 401 AND
gir.reference_1 = mta.gl_batch_id AND
gjl.code_combination_id = mta.reference_account AND
mta.transaction_date BETWEEN gps.start_date AND gps.end_date AND
mta.transaction_id = mmt.transaction_id AND
mmt.transaction_type_id = mtt.transaction_type_id AND
mmt.organization_id = ood.organization_id AND
--
mtt.transaction_type_name = 'Average cost update' AND
--
gjh.je_source = 'Inventory' AND gjh.je_category = 'MTL' AND
--
gjh.period_name = '06-2004' AND gjh.set_of_books_id = 1 AND
gjh.je_header_id = 3148
GROUP BY gjh.set_of_books_id,
mta.organization_id,
ood.organization_code,
ood.organization_name,
gjl.je_line_num,
mmt.transaction_source_name,
mmt.subinventory_code,
trunc(mmt.transaction_date),
mtt.transaction_type_name,
gcc.concatenated_segments
UNION ALL
SELECT gjh.set_of_books_id,
gjl.je_line_num,
mta.organization_id,
ood.organization_code,
ood.organization_name,
mtt.transaction_type_name,
rsh.receipt_num trx_number,
to_char(ooh.order_number) trx_source,
trunc(mmt.transaction_date) transaction_date,
gcc.concatenated_segments account,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
1, nvl(mta.transaction_value, mta.base_transaction_value), 0, 0,
NULL)) entered_dr1,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
-1,
(-1 * nvl(mta.transaction_value, mta.base_transaction_value)),
NULL)) entered_cr1,
SUM(decode(sign(mta.base_transaction_value), 1,
mta.base_transaction_value, 0, 0, NULL)) accounted_dr1,
SUM(decode(sign(mta.base_transaction_value), -1,
(-1 * mta.base_transaction_value), NULL)) accounted_cr1,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1,
nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_cr,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1, mta.base_transaction_value,
0)) accounted_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * mta.base_transaction_value, 0)) accounted_cr
FROM gl_je_lines gjl,
gl_je_headers gjh,
gl_code_combinations_kfv gcc,
gl_import_references gir,
gl_period_statuses gps,
mtl_transaction_accounts mta,
mtl_material_transactions mmt,
mtl_transaction_types mtt,
rcv_transactions rt,
rcv_shipment_headers rsh,
oe_order_headers_all ooh,
org_organization_definitions ood
WHERE gjl.je_header_id = gjh.je_header_id AND
gjl.code_combination_id = gcc.code_combination_id AND
gjl.je_header_id = gir.je_header_id AND
gjl.je_line_num = gir.je_line_num AND
gjh.set_of_books_id = gps.set_of_books_id AND
gjh.period_name = gps.period_name AND gps.application_id = 401 AND
gir.reference_1 = mta.gl_batch_id AND
gjl.code_combination_id = mta.reference_account AND
mta.transaction_date BETWEEN gps.start_date AND gps.end_date AND
mta.transaction_id = mmt.transaction_id AND
mmt.transaction_type_id = mtt.transaction_type_id AND
mmt.organization_id = ood.organization_id AND
--
mtt.transaction_type_name = 'RMA Receipt' AND
rt.transaction_id = mmt.rcv_transaction_id AND
rt.shipment_header_id = rsh.shipment_header_id AND
rt.oe_order_header_id = ooh.header_id AND
--
gjh.je_source = 'Inventory' AND gjh.je_category = 'MTL' AND
--
gjh.period_name = '06-2004' AND gjh.set_of_books_id = 1 AND
gjh.je_header_id = 3148
GROUP BY gjh.set_of_books_id,
mta.organization_id,
ood.organization_code,
ood.organization_name,
gjl.je_line_num,
rsh.receipt_num,
ooh.order_number,
mmt.subinventory_code,
trunc(mmt.transaction_date),
mtt.transaction_type_name,
gcc.concatenated_segments
UNION ALL
SELECT gjh.set_of_books_id,
gjl.je_line_num,
mta.organization_id,
ood.organization_code,
ood.organization_name,
mtt.transaction_type_name,
to_char(mmt.transaction_set_id) trx_number,
mgd.segment1 trx_source,
trunc(mmt.transaction_date) transaction_date,
gcc.concatenated_segments account,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
1, nvl(mta.transaction_value, mta.base_transaction_value), 0, 0,
NULL)) entered_dr1,
SUM(decode(sign(nvl(mta.transaction_value, mta.base_transaction_value)),
-1,
(-1 * nvl(mta.transaction_value, mta.base_transaction_value)),
NULL)) entered_cr1,
SUM(decode(sign(mta.base_transaction_value), 1,
mta.base_transaction_value, 0, 0, NULL)) accounted_dr1,
SUM(decode(sign(mta.base_transaction_value), -1,
(-1 * mta.base_transaction_value), NULL)) accounted_cr1,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1,
nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * nvl(mta.transaction_value, mta.base_transaction_value), 0)) entered_cr,
SUM(decode(sign(nvl(gjl.accounted_dr, 0)), 1, mta.base_transaction_value,
0)) accounted_dr,
SUM(decode(sign(nvl(gjl.accounted_cr, 0)), 1,
-1 * mta.base_transaction_value, 0)) accounted_cr
FROM gl_je_lines gjl,
gl_je_headers gjh,
gl_code_combinations_kfv gcc,
gl_import_references gir,
gl_period_statuses gps,
mtl_transaction_accounts mta,
mtl_material_transactions mmt,
mtl_transaction_types mtt,
org_organization_definitions ood,
MTL_GENERIC_DISPOSITIONS mgd
WHERE gjl.je_header_id = gjh.je_header_id AND
gjl.code_combination_id = gcc.code_combination_id AND
gjl.je_header_id = gir.je_header_id AND
gjl.je_line_num = gir.je_line_num AND
gjh.set_of_books_id = gps.set_of_books_id AND
gjh.period_name = gps.period_name AND gps.application_id = 401 AND
gir.reference_1 = mta.gl_batch_id AND
gjl.code_combination_id = mta.reference_account AND
mta.transaction_date BETWEEN gps.start_date AND gps.end_date AND
mta.transaction_id = mmt.transaction_id AND
mmt.transaction_type_id = mtt.transaction_type_id AND
mmt.organization_id = ood.organization_id AND
--
mtt.transaction_type_name NOT IN
('Sales Order Pick', 'Sales order issue', 'PO Receipt', 'PO Rcpt Adjust',
'Subinventory Transfer', 'Move Order Transfer', 'Physical Inv Adjust',
'富通子库存转移', 'Average cost update', 'RMA Receipt') AND
mmt.transaction_source_id = mgd.disposition_id AND
mgd.organization_id = mmt.organization_id AND
--
gjh.je_source = 'Inventory' AND gjh.je_category = 'MTL' AND
--
gjh.period_name = '06-2004' AND gjh.set_of_books_id = 1 AND
gjh.je_header_id = 3148
GROUP BY gjh.set_of_books_id,
mta.organization_id,
ood.organization_code,
ood.organization_name,
gjl.je_line_num,
mmt.transaction_set_id,
mgd.segment1,
trunc(mmt.transaction_date),
mtt.transaction_type_name,
gcc.concatenated_segments
ORDER BY 2
总账追朔各模块SQL的更多相关文章
- Windows下也能够使用osw追朔系统历史性能
1.Windows系统历史性能分析困难背景 在Linux/Unix上.要追朔历史性能,一般採用部署nmon进行性能监控採集与存储的方式实现.可是却没有在Windows上的版本号. Windows系统假 ...
- Apache 'mod_accounting'模块SQL注入漏洞(CVE-2013-5697)
漏洞版本: mod_accounting 0.5 漏洞描述: BUGTRAQ ID: 62677 CVE ID: CVE-2013-5697 mod_accounting是Apache 1.3.x上的 ...
- Navicat工具、pymysql模块 sql注入
cls超 Navicat工具.pymysql模块 阅读目录 一 IDE工具介绍 二 pymysql模块 一 IDE工具介绍(Navicat) 生产环境还是推荐使用mysql命令行,但为了方便我们测试, ...
- MySQL多表查询,Navicat使用,pymysql模块,sql注入问题
一.多表查询 #建表 create table dep( id int, name varchar(20) ); create table emp( id int primary key auto_i ...
- PHPCMS v9.6.0 wap模块 SQL注入
调试这个漏洞的时候踩了个坑,影响的版本是php5.4以后. 由于漏洞是由parse_str()函数引起的,但是这个函数在gpc开启的时候(也就是php5.4以下)会对单引号进行过滤\' . 看这里: ...
- day40:python操作mysql:pymysql模块&SQL注入攻击
目录 part1:用python连接mysql 1.用python连接mysql的基本语法 2.用python 创建&删除表 3.用python操作事务处理 part2:sql注入攻击 1.s ...
- 【漏洞复现】PHPCMS wap模块 SQL注入(附EXP)
漏洞影响版本:v9.5.8.v9.6.0 Step1: 访问:http://www.xxx.com/index.php?m=wap&a=index&siteid=1, 获取返回的coo ...
- Navicat,SQL注入,pymysql模块
# 关键字exists(了解) 只返回布尔值 True False 返回True的时候外层查询语句执行 返回False的时候外层查询语句不再执行 select * from emp where exi ...
- PL/SQL一个简短的引论
前言 文本 PL/SQL (Procedure Language,程序语言)SQL 1999主要的数据库供应商提供结构化的共同语言 PL/SQL只有支持Oracle数据库 基本的语法 多行凝视 ...
随机推荐
- 为什么函数式编程可以没有while?
以前想不通,今天在写代码时不知怎么的,偶然就发现了答案.. 比如说把某个字符串s中所有"00"及更长的'00'统统换为'0'.最后结果中不能包含'00'. 00001100--&g ...
- Android自定义控件及自定义属性
Android自定义控件及自定义属性 自定义控件 创建自定义控件 自定义一个类,继承View 继承View还是哪个类,取决于你要实现一个什么样的控件 如果你要实现的是一个线性布局的组合控件,就可以继承 ...
- Xcode8之后,苹果列出了最新App被拒十大原因
开发者在开发应用程序之前,熟悉苹果审核应用的技术.内容以及设计准则是非常重要的,可以大大降低应用审核被拒的可能性. 最近,苹果通过一个专门的页面给出了截止2016年10月10日应用提交审核被拒的十大原 ...
- 64位Linux下安装mysql-5.7.13-linux-glibc2.5-x86_64 || 转载:http://www.cnblogs.com/gaojupeng/p/5727069.html
由于公司临时让将Oracle的数据移植到mysql上面,所以让我在公司服务器上面安装一下mysql.下面就是我的安装过程以及一些错误解决思路.其实对于不同版本安装大体都有差不多. 1. 从官网下载 m ...
- Dialog样式的Activity
效果图: 设置全屏模式: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInst ...
- UNIX网络编程——原始套接字的魔力【续】
如何从链路层直接发送数据帧 上一篇里面提到的是从链路层"收发"数据,该篇是从链路层发送数据帧. 上一节我们主要研究了如何从链路层直接接收数据帧,可以通过bind函数来将原始套接字绑 ...
- 剑指Offer——算法复杂度中的O(logN)底数是多少
剑指Offer--算法复杂度中的O(logN)底数是多少 前言 无论是计算机算法概论.还是数据结构书中,关于算法的时间复杂度很多都用包含O(logN)这样的描述,但是却没有明确说logN的底数究竟是多 ...
- Java基础---Java---面试题---交通灯管理系统(面向对象、枚举)
交通灯管理系统的项目需求: 模拟实现十字路口的交通灯管理系统逻辑,具体需求如下: 1.异步随机生成按照各个路线行驶的车辆 例如: 由南向而来去往北向的车辆-----直行车辆 由西向而来去往南 ...
- JAVA之旅(二十八)——File概述,创建,删除,判断文件存在,创建文件夹,判断是否为文件/文件夹,获取信息,文件列表,文件过滤
JAVA之旅(二十八)--File概述,创建,删除,判断文件存在,创建文件夹,判断是否为文件/文件夹,获取信息,文件列表,文件过滤 我们可以继续了,今天说下File 一.File概述 文件的操作是非常 ...
- 【原创】Eclipse vs. IDEA快捷键对比大全
花了一天时间熟悉IDEA的各种操作,将各种快捷键都试了一下,感觉很是不错!于是就整理了一下我经常用的一些Eclipse快捷键与IDEA的对比,方便像我一样使用Eclipse多年但想尝试些改变的同学们. ...