並列查詢。
report z_select_for_all_entries.
data: begin of wa_spfli,
carrid type spfli-carrid,
connid type spfli-connid,
end of wa_spfli,
begin of wa_scarr,
carrid type scarr-carrid,
carrname type scarr-carrname,
end of wa_scarr,
spfli_tab like table of wa_spfli.
select carrid connid
from spfli
into table spfli_tab
where cityfrom = 'singapore'.
select carrid carrname
from scarr
into wa_scarr
for all enteries in spfli_tab
where carrid = spfli_tab-carrid.
........
endselect.
子查詢。
select ...
from scarr
into
where exist(select* from spfli where carrid = scarr-carrid and cityfrom = 'singapore').
......where city in (select cityfrom from spfli where carrid -scarr-carrid)
單行返回
.....where city = (select cityfrom from spfli where carrid = scarr-carrid)...
返回多行
.....where city > all (select cityfrom from spfli where carrid = scarr-carrid)...
jmeter根據查詢資料查詢結果
前兩天試了 一下根據請求查詢出的userid,查詢該userid的資訊。1.新建 1 新建執行緒組 2 新建http請求預設值 3 新建http cookie管理器 4 新建http資訊頭管理器 5 新建登入請求,並新增正規表示式獲取token 2.迴圈控制器 1 新增迴圈控制器,設定迴圈次數 2 ...
MySQL資料查詢
1.基本查詢語句 select語句是最常用的查詢語句,它的使用方式有些複雜,但功能卻相當強大。select selection list 要查詢的內容,選擇哪些列 from資料表名 制定資料表 where primary constraint 查詢時需要滿足的條件,行必須滿足條件 2.單錶查詢 單錶...
資料查詢優化
一 避免全表掃瞄 首先考慮在where及order by涉及的列上建立索引 避免在where子句中對字段進行null判斷這樣會導致全表掃瞄 二 避免出現where子句中對字段進行null值判斷 demo select id from t where num is null可以替換為select id...