Srihari... 我对 QC 也比较陌生。关于查询QC DB,我主要是检索BUG数据,主要是通过Dashboard模块中的反复试验学习的。最初,我不知道要包含哪些列,所以我只是做了一个查询来 select * from BUG where bg_bug_id = <some bug ID I had logged>
本质上,我对 BUG 的基本查询写在下面。我只是从那里修改。
SELECT
BUG.BG_BUG_ID,
RELEASES.REL_NAME as "Detected in Release",
RELEASE_CYCLES.RCYC_NAME as "Detected in Cycle",
BUG.BG_DETECTED_BY as "Submitted By",
BUG.BG_SUMMARY as Summary,
BUG.BG_DESCRIPTION as Description,
BUG.BG_STATUS as State
-- plus other BUG details
FROM BUG
LEFT JOIN RELEASES
ON BUG.BG_DETECTED_IN_REL = RELEASES.REL_ID
LEFT JOIN RELEASE_CYCLES
ON BUG.BG_DETECTED_IN_RCYC = RELEASE_CYCLES.RCYC_ID
-- WHERE clause
-- ORDER BY 1
'希望这可以帮助 :)