主题:用視圖再做視圖,為何用上連接條件,就查不到任何數據?
代碼如下:
[color=FF0000]其中HUINU及FILELIST均為遠程視圖 [/color]
CREATE SQL VIEW V_ARRAY AS SELE HUINU.代碼,HUINU.名稱;
FROM CMADE!HUINU INNER JOIN CMADE!FILELIST ON (UPPER(ALLTRIM(HUINU.代碼))+"匯率")=(UPPER(ALLTRIM(FILELIST.關鍵字))+UPPER(ALLTRIM(FILELIST.文件類別)));
ORDER BY HUINU.代碼
注:以上這一段SQL,沒有任何數據返回,也不報錯,有表頭,但無記錄.
CREATE SQL VIEW V_ARRAY AS SELE HUINU.代碼,HUINU.名稱;
FROM CMADE!HUINU ORDER BY HUINU.代碼
注:以上這一段是有數據的.
[color=FF0000]如果我把HUINU及FILELIST用CREATEOFFLINE()做成離線視圖,其第一條的SQL是有記錄且是正確的.[/color]
[color=FF0000]其中HUINU及FILELIST均為遠程視圖 [/color]
CREATE SQL VIEW V_ARRAY AS SELE HUINU.代碼,HUINU.名稱;
FROM CMADE!HUINU INNER JOIN CMADE!FILELIST ON (UPPER(ALLTRIM(HUINU.代碼))+"匯率")=(UPPER(ALLTRIM(FILELIST.關鍵字))+UPPER(ALLTRIM(FILELIST.文件類別)));
ORDER BY HUINU.代碼
注:以上這一段SQL,沒有任何數據返回,也不報錯,有表頭,但無記錄.
CREATE SQL VIEW V_ARRAY AS SELE HUINU.代碼,HUINU.名稱;
FROM CMADE!HUINU ORDER BY HUINU.代碼
注:以上這一段是有數據的.
[color=FF0000]如果我把HUINU及FILELIST用CREATEOFFLINE()做成離線視圖,其第一條的SQL是有記錄且是正確的.[/color]