我想弄清楚這個SQL語句有什麼問題。這是在我試圖添加到名爲v3
的數據庫和geneSymbolIn
在上面定義的過程結束時進行的。我在最後的WHERE
上發生錯誤,表示這是意外的。FROM子句中的嵌套SELECT語句SQL
FROM (SELECT Probe_gene, logFC, adj_P_Value, gene, Study_ID, Group1, Group2 FROM v3.degContrastList WHERE gene = geneSymbolIn) AS CL,
(SELECT Study_ID, Disease, PMID, Time_Point, Treatment, Raw_Data FROM v3.degContrastListExperiment) AS ET,
WHERE CL.Study_ID = ET.Study_ID;
見https://meta.stackoverflow.com/questions/333952/why-should-i-provide-an-mcve-for-what-seems-to-me-to-be-a-very -simple-sql-query – Strawberry
@Kyle - 如果我的解決方案已解決您的問題,請接受答案並投票表決! – JRG