2013 01 11 ORA SQL 測試指令碼

2021-06-12 06:15:32 字數 2009 閱讀 1720

-- 基於主變及進行確定最大basev

select stationname, max (basev) tran_ln, 0 bus

from tb_topo_line

where linetype in (12, 271, 527, 783)

group by stationname;

-- 基於母線確定最大basev

select stationname, 0 tran_ln, max (basev) bus

from tb_topo_node

where nodetype2 = 11

group by stationname;

-- 聯合以上2種方法,確定最大basev

-- 更新 tb_dev_substation table

update tb_dev_substation a

set a.basev = (

select b.basev from( select stationname,

decode (greatest (max (tran_ln), max (bus)),

500, 0,

220, 1,

110, 2,

35, 3,

10, 4,

1, 5,

6, 6,

7, 0.4,

-1)basev,

max (tran_ln) max_tran_ln,

max (bus) max_bus

from ( select stationname, max (basev) tran_ln, 0 bus

from tb_topo_line

where linetype in (12, 271, 527, 783)

group by stationname

union

select stationname, 0 tran_ln, max (basev) bus

from tb_topo_node

where nodetype2 = 11

group by stationname)

group by stationname

order by stationname)b where a.name = b.stationname);

-- 更新 tb_eva_keyuser table

select * from tb_eva_keyuser;

update tb_eva_keyuser a

set a.basev = (

select b.basev from( select stationname,

greatest (max (tran_ln), max (bus)) basev,

max (tran_ln) max_tran_ln,

max (bus) max_bus

from ( select stationname, max (basev) tran_ln, 0 bus

from tb_topo_line

where linetype in (12, 271, 527, 783)

group by stationname

union

select stationname, 0 tran_ln, max (basev) bus

from tb_topo_node

where nodetype2 = 11

group by stationname)

group by stationname

order by stationname)b where a.name = b.stationname);

select *

from (select distinct name from tb_dev_substation) a

where a.name not in (select distinct stationname from tb_topo_line);

Jmeter 四 測試webservice指令碼

1.有些非標準的wsdl檔案匯入到loadrunner時候會報錯,這時候我們就能利用jmeter進行效能測試 2.在soapui中新建已經soap專案,file new soapui project 輸入project name initial wsdl wadl 輸入匯入wsdl位址,獲取到請求報...

mysql進行測試的指令碼 mysql測試指令碼

mysql從5.1.4版開始帶有乙個壓力測試工具mysqlslap,通過模擬多個併發客戶端訪問mysql來執行測試,使用起來非常的簡單。通過mysqlslap help可以獲得可用的選項,這裡列一些主要的引數,更詳細的說明參考官方手冊。複製 如下 auto generate sql,a 自動生成測試...

DC DC公升壓IC測試及EN腳講解

dc dc是硬體開發過程中常用的一種器件,主要用於獲取特定的直流電壓,此處不對dc dc的工作原理進行講解,只對使用過程中發現的乙個關於帶en腳的幾款dc dc公升壓ic的小問題進行展示。下圖所示為mt3608的應用電路圖 其輸出電壓為可調值 通過r1與r2進行調節設定 其中en腳即為ic的使能引腳...