MS Access Table在查询中显示为Alias

时间:2015-11-24 15:41:43

标签: ms-access ms-access-2010

我在数据库中有一个查询,它引用了一个名为%$##@_Alias

的表

如何判断查询获取数据的位置?

在网上搜索时,我没有得到明智的答案。

更新: 我查看了查询的SQL视图并得到了这个:

SELECT [%$##@_Alias].F87 AS ID_PEERGROUP, [%$##@_Alias].F1 AS FUNDNAME, [%$##@_Alias].F2 AS ISIN, [%$##@_Alias].F82 AS SECID, [%$##@_Alias].F4 AS NAV, [%$##@_Alias].F6 AS CCY, IIf(Not IsNull([F7]),CDbl([F7])/1000000,IIf(Not IsNull([F8]),CDbl([F8])/1000000,IIf(Not IsNull([F9]),CDbl([F9])/1000000,IIf(Not IsNull([F10]),CDbl([F10])/1000000,-1)))) AS LC_FUNDSIZE, [%$##@_Alias].F81 AS COUNTRYLIST, [%$##@_Alias].F63 AS PRIMARY_FLAG, [%$##@_Alias].F77 AS TAX, [%$##@_Alias].F84 AS BENCHMARK_MPT, [%$##@_Alias].F85 AS DISTRIBUTION_STATUS, [%$##@_Alias].F86 AS VALOR, IIf(InStr(1,[%$##@_Alias].[F81],"Austria")<>0,True,False) AS REG_AT, IIf(InStr(1,[%$##@_Alias].[F81],"Belgium")<>0,True,False) AS REG_BE, IIf(InStr(1,[%$##@_Alias].[F81],"France")<>0,True,False) AS REG_FR, IIf(InStr(1,[%$##@_Alias].[F81],"Hong Kong")<>0,True,False) AS REG_HK, IIf(InStr(1,[%$##@_Alias].[F81],"Italy")<>0,True,False) AS REG_IT, IIf(InStr(1,[%$##@_Alias].[F81],"Luxembourg")<>0,True,False) AS REG_LU, IIf(InStr(1,[%$##@_Alias].[F81],"Netherlands")<>0,True,False) AS REG_NL, IIf(InStr(1,[%$##@_Alias].[F81],"Poland")<>0,True,False) AS REG_PL, IIf(InStr(1,[%$##@_Alias].[F81],"Singapore")<>0,True,False) AS REG_SG, IIf(InStr(1,[%$##@_Alias].[F81],"Spain")<>0,True,False) AS REG_ES, IIf(InStr(1,[%$##@_Alias].[F81],"Switzerland")<>0,True,False) AS REG_CH, IIf(InStr(1,[%$##@_Alias].[F81],"Emirates")<>0,True,False) AS REG_UE, IIf(InStr(1,[%$##@_Alias].[F81],"Germany")<>0,True,False) AS REG_DE, IIf(InStr(1,[%$##@_Alias].[F81],"United Kingdom")<>0,True,False) AS REG_UK, [%$##@_Alias].F76 AS P_Perf3Y_G, [%$##@_Alias].F78 AS P_PerfYTD_G, [%$##@_Alias].F31 AS R_Vola3Y_K_USD, False AS isSarasin, 1 AS Sectype, tbl_Currency.Currency_ISO, [%$##@_Alias].F88 AS Repliation_Method, [%$##@_Alias].F89 AS TER, [%$##@_Alias].F90 AS Inception_Date, [%$##@_Alias].F91 AS Broad_Category, Right([F3],Len([F3])-8) AS Peergroup, [%$##@_Alias].F93 AS Spread
FROM tbl_Currency RIGHT JOIN (select * from
[ETF Transfer - HEADER]

UNION ALL select * from
(
select * from
[ETF Transfer]

)
)  AS [%$##@_Alias] ON tbl_Currency.Currency_Name = [%$##@_Alias].F6
WHERE ((([%$##@_Alias].F2)<>"" And ([%$##@_Alias].F2)<>"ISIN" And ([%$##@_Alias].F2)<>'ABC'));

1 个答案:

答案 0 :(得分:2)

这显然是Alias的{​​{1}}。要删除此别名:

  • 在“设计”视图中打开查询
  • 确保“属性”窗口可见
  • 点击select * from [ETF Transfer]&#34;表&#34;
  • 在Alias属性中,键入[ETF Transfer],然后按%$##@_Alias

完成......别名应该消失