2017-07-10 13 views
0

内部結合を行うときに2つの列を参照する際に問題があります。私は無用に次の組み合わせを試してみました。内部結合参照

SELECT 
* 
FROM 
adwords_final 
INNER JOIN mk_kw ON adwords_final.Key = mk_kw.Key; 

SELECT 
* 
FROM 
adwords_final 
INNER JOIN mk_kw ON "adwords_final.Key" = "mk_kw.Key"; 

以下のような結果になります。

ERROR: column adwords_final.key does not exist 
LINE 5: INNER JOIN mk_kw ON adwords_final.Key = mk_kw.Key; 
         ^
HINT: Perhaps you meant to reference the column "adwords_final.Key". 
********** Error ********** 

ERROR: column adwords_final.key does not exist 
SQL state: 42703 
Hint: Perhaps you meant to reference the column "adwords_final.Key". 
Character: 49 

私にはもっと明白なものがありません。後者をさらに参照したり、新しいクエリを作成したりする必要がありますか?

ありがとうございます。

アドワーズ広告の最終列。識別子のすべての要素は、二重引用符で囲む必要がありmk_kw

​​

答えて

1

Week Keyword state Keyword Campaign Ad group Status Max. CPC Impressions Interactions Interaction Types Interaction Rate Avg. Cost Cost Clicks Avg. position Conversions Quality score Ad relevance Landing page experience Expected clickthrough rate Qual. score (hist.) Ad relevance (hist.) Landing page experience (hist.) Expected clickthrough rate (hist.) Search Impr. share Match type First position CPC Top of page CPC First page CPC Impressions with average ctr Impressions with above average ctr Impressions with below average ctr Impressions with below average lp exp Impressions with average lp exp Impressions with above average lp exp Impressions with below average Ad Rel Impressions with average ad rel Impressions with above average ad rel QSxIMP Key 

列。完全な識別子ではありません。

だから、使用する必要があります。代わりにすべて小文字です識別子を引用符で囲む必要はありません"mk_kw.Key"

"adwords_final"."Key"代わりの"adwords_final.Key"

"mk_kw"."Key"を。 "mk_kw"."Key"は、マニュアルの章Identifiers and Key Wordsを参照してください。完全な説明についてはmk_kw."Key"


と同じです。

関連する問題