2016-12-12 46 views
-1

而我使用下面的SQL查詢的輸出給了我的操作對象包含一列有沒有什麼辦法解決呢操作數應包含1列(S)

String sql5 = "select distinct words.word from sentence.words where words.word not in ((select countries.country, horoofs.horoof from sentence.horoofs,sentence.countries))"; 
+0

你的子查詢在使用'IN'運算符時應該只返回一列,否則就是無稽之談。 'WHERE words.word NOT IN(單列返回,或逗號分隔的單詞列表)'' – JNevill

回答

0

您只能選擇一列下面的聲明。

((select countries.country, horoofs.horoof from sentence.horoofs,sentence.countries)) 
相關問題