所以我有表CodeSection
中的Professeur
字段,并尝试从表Nom
中获取字段Software
。
我的DB就是这样:
Hum ...apparently I don't have enough reputation to post a picture ... I can send it to you by message
我的查询如下:
String query ="SELECT Software.Nom
FROM Software
WHERE Software.CodeSoftware = UtilisationSoftware.CodeSoftware
AND UtilisationSoftware.IdAnneeEtude = AnneeEtude.IdAnneeEtude
AND AnneeEtude.CodeSection = '" + codeSection + "'";
codeSection
是一个字符串
但问题仍然存在于查询中
答案 0 :(得分:0)
您的SELECT语句需要具有FROM关键字:
SELECT <...> FROM <...> WHERE <...>
从部分应包含表名,从中选择日期