10

ここで簡単なクエリを実行すると、列「Mary」が存在しないことが返されます。

SELECT  telephone.telephonenumber as tel
FROM    person, telephone
WHERE   person.idperson = telephone.idperson
AND person.personname = ‘Mary’;

誰かが何が起こっているのか説明できますか? Mary を列としてではなく、値として使用します。

前もってありがとう、ガブリエル

4

2 に答える 2

14
于 2012-11-02T13:52:25.707 に答える
2

Make sure that you are quoting your string correctly.

From your snippet, I'd say that's the problem here since you're using something else than simple single quotes.

于 2012-11-02T13:53:17.860 に答える