我想這個查詢從Oracle轉換到MySQL:轉換的Oracle查詢到MySQL查詢
CREATE TABLE SCT_201301_UMLS_SYN
AS SELECT DISTINCT A.SCUI "SNOMED_CODE", A.STR "SNOMED_DISPLAY_NAME"
, B.STR "UMLS_SYNONYM"
FROM MRCONSO A, MRCONSO_UMLS B
WHERE A.SCUI IN (SELECT referencedComponentId
FROM SnomedCTtoICD10)
AND A.SAB='SNOMEDCT'
AND A.SUPPRESS='N'
AND A.TTY='PT'
AND B.LAT='ENG'
AND B.SUPPRESS='N'
AND A.CUI=B.CUI
任何想法如何做到這一點?
好像取代爲它應該是相同的(http://dev.mysql.com/doc/refman/5.0/en/create-table -select.html)語法。你有錯誤嗎? –
這不是一個語法問題,所以你應該發佈你的錯誤日誌。請在[sqlfiddle](http://sqlfiddle.com/#!2/dc9b9) –